Skip to content

Commit 9440b9d

Browse files
authored
Update kafka_test.go
1 parent 7fed7d7 commit 9440b9d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

events/kafka_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ func TestKafkaEventMarshaling(t *testing.T) {
4040
}
4141
}
4242

43-
// 3. serialize to JSON
44-
outputJson, err := json.Marshal(inputEvent)
45-
if err != nil {
46-
t.Errorf("could not marshal event. details: %v", err)
47-
}
48-
49-
// 4. check result
50-
assert.JSONEq(t, string(inputJson), string(outputJson))
43+
// 3. serialize to JSON
44+
outputJson, err := json.Marshal(inputEvent)
45+
if err != nil {
46+
t.Errorf("could not marshal event. details: %v", err)
47+
}
48+
49+
// 4. check result
50+
assert.JSONEq(t, string(inputJson), string(outputJson))
5151
}
5252

5353
func TestKafkaMarshalingMalformedJson(t *testing.T) {

0 commit comments

Comments
 (0)