Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fix in tester code #135

Merged
merged 1 commit into from
Jun 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tester/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,19 @@ func (km *Tester) ConsumeProto(topic string, key string, msg proto.Message) {
if err != nil && km.t != nil {
km.t.Errorf("Error marshaling message for consume: %v", err)
}
km.ConsumeData(topic, key, data)
km.consumeData(topic, key, data)
km.makeCalls()
}

// ConsumeString simulates a message with a string payload.
func (km *Tester) ConsumeString(topic string, key string, msg string) {
km.ConsumeData(topic, key, []byte(msg))
km.consumeData(topic, key, []byte(msg))
km.makeCalls()
}

// Consume simulates a message with a byte slice payload.
func (km *Tester) Consume(topic string, key string, msg []byte) {
km.ConsumeData(topic, key, msg)
km.consumeData(topic, key, msg)
km.makeCalls()
}

Expand Down