Skip to content

Commit

Permalink
Ignore KV keys filtering in Pre 2.10 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwatchuk committed Jul 5, 2024
1 parent c0c5213 commit d79b987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/NATS.Client.KeyValueStore.Tests/GetKeysTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task Get_keys_when_empty()
Assert.Equal(3, count);
}

[Fact]
[SkipIfNatsServer(versionEarlierThan: "2.10")]
public async Task Get_filtered_keys()
{
const string bucket = "b1";
Expand All @@ -105,6 +105,8 @@ public async Task Get_filtered_keys()
await store1.PutAsync("d", 2, cancellationToken: cancellationToken);

var ks1 = new List<string>();

// Multiple keys are only supported in NATS Server 2.10 and later
await foreach (var k in store1.GetKeysAsync(new string[] { "d", "a.>", "c.>" }, cancellationToken: cancellationToken))
{
ks1.Add(k);
Expand Down

0 comments on commit d79b987

Please sign in to comment.