Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix error message assertion in CounterTest
  • Loading branch information
mtmk authored Sep 24, 2025
commit e3ee152a48b91a61af91f6c662428e8f993dacb2
2 changes: 1 addition & 1 deletion tests/NATS.Client.JetStream.Tests/CounterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public async Task Counter_without_AllowMsgCounter_should_return_error()
// When counter is disabled, the server returns an error
Assert.NotNull(ack.Error);
Assert.Equal(10168, ack.Error.ErrCode); // Error code for "message counters is disabled"
Assert.Contains("message counters are disabled", ack.Error.Description);
Assert.Contains("message counters is disabled", ack.Error.Description);
Assert.Null(ack.Value); // Value should be null when counter is not enabled
_output.WriteLine($"Error as expected: {ack.Error.Description}");
}
Expand Down
Loading