Skip to content

Commit

Permalink
Merge pull request #135 from lovoo/hotfix/tester-fix-typo
Browse files Browse the repository at this point in the history
typo fix in tester code
  • Loading branch information
db7 authored Jun 21, 2018
2 parents 1f455a9 + ae064e7 commit 70481ae
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 70481ae

Please sign in to comment.