We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f638238 commit 0ab6299Copy full SHA for 0ab6299
events/kafka_test.go
@@ -39,6 +39,15 @@ func TestKafkaEventMarshaling(t *testing.T) {
39
}
40
41
42
+
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))
51
52
53
func TestKafkaMarshalingMalformedJson(t *testing.T) {
0 commit comments