Skip to content

Commit

Permalink
Skip TTL tests for nats versions older than 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
stebet committed Jan 8, 2025
1 parent be1a5c1 commit d234060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ await Assert.ThrowsAsync<NatsKVCreateException>(async () =>
}
}

[Fact]
[SkipIfNatsServer(versionEarlierThan: "2.11")]
public async Task TestMessageTTL()
{
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
Expand Down Expand Up @@ -491,7 +491,7 @@ public async Task TestMessageTTL()
Assert.Equal(10ul, state.Info.State.LastSeq);
}

[Fact]
[SkipIfNatsServer(versionEarlierThan: "2.11")]
public async Task TestMessageNeverExpire()
{
var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
Expand Down

0 comments on commit d234060

Please sign in to comment.