Skip to content

Commit

Permalink
Rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Nov 4, 2024
1 parent a9bec14 commit 6c4f2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kafkalib/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestNewMessage(t *testing.T) {
},
)

msg, err := newMessage("topic-prefix", rawMessage)
msg, err := buildKafkaMessage("topic-prefix", rawMessage)
assert.NoError(t, err)
assert.Equal(t, "topic-prefix.topic-suffix", msg.Topic)
assert.Equal(t, `{"key":"value"}`, string(msg.Key))
Expand Down

0 comments on commit 6c4f2d9

Please sign in to comment.