Skip to content

Commit 14cb9f5

Browse files
committed
Fix Kafka test which was broken by xUnit upgrade
The production code behavior hasn't changed here, but Assert.Equal used to pass when presented with an empty string and an empty byte array. Signed-off-by: Jon Skeet <[email protected]>
1 parent d9831a3 commit 14cb9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void KafkaBinaryMessageTest()
132132
[Theory]
133133
[InlineData(MediaTypeNames.Application.Octet, new byte[0])]
134134
[InlineData(MediaTypeNames.Application.Json, null)]
135-
[InlineData(MediaTypeNames.Application.Xml, "")]
135+
[InlineData(MediaTypeNames.Application.Xml, new byte[0])]
136136
[InlineData(MediaTypeNames.Text.Plain, "")]
137137
[InlineData(null, null)]
138138
public void KafkaBinaryMessageTombstoneTest(string? contentType, object? expectedDecodedResult)

0 commit comments

Comments
 (0)