From 74d3cf9a0d681a95c1850fafea4e7eed6c86183c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stef=C3=A1n=20J=C3=B6kull=20Sigur=C3=B0arson?= Date: Wed, 8 Jan 2025 15:36:57 +0000 Subject: [PATCH] Skip TTL tests for nats versions older than 2.11 --- tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs b/tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs index 8b6387774..00e6efdf6 100644 --- a/tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs +++ b/tests/NATS.Client.KeyValueStore.Tests/KeyValueStoreTest.cs @@ -459,7 +459,7 @@ await Assert.ThrowsAsync(async () => } } - [Fact] + [SkipIfNatsServer(versionEarlierThan: "2.11")] public async Task TestMessageTTL() { var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10)); @@ -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));