Skip to content

Commit

Permalink
Fix Kafka test which was broken by xUnit upgrade
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jskeet committed Aug 2, 2024
1 parent 95aeded commit bad80eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CloudNative.CloudEvents.UnitTests/Kafka/KafkaTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void KafkaBinaryMessageTest()
[Theory]
[InlineData(MediaTypeNames.Application.Octet, new byte[0])]
[InlineData(MediaTypeNames.Application.Json, null)]
[InlineData(MediaTypeNames.Application.Xml, "")]
[InlineData(MediaTypeNames.Application.Xml, new byte[0])]
[InlineData(MediaTypeNames.Text.Plain, "")]
[InlineData(null, null)]
public void KafkaBinaryMessageTombstoneTest(string? contentType, object? expectedDecodedResult)
Expand Down

0 comments on commit bad80eb

Please sign in to comment.