From 5b345dae3f32ce245559dd1649792c9655fc2ef1 Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Mon, 21 Jul 2025 09:53:00 +0100 Subject: [PATCH] test fix; skip CLIENT PAUSE tests unless long-running enabled --- tests/StackExchange.Redis.Tests/CancellationTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/StackExchange.Redis.Tests/CancellationTests.cs b/tests/StackExchange.Redis.Tests/CancellationTests.cs index ba23fb6ed..71306e9dd 100644 --- a/tests/StackExchange.Redis.Tests/CancellationTests.cs +++ b/tests/StackExchange.Redis.Tests/CancellationTests.cs @@ -43,6 +43,8 @@ public async Task WithCancellation_ValidToken_OperationSucceeds() [Fact] public async Task WithTimeout_ShortTimeout_Async_ThrowsOperationCanceledException() { + Skip.UnlessLongRunning(); // because of CLIENT PAUSE impact to unrelated tests + await using var conn = Create(); var db = conn.GetDatabase(); @@ -119,6 +121,8 @@ private static CancellationTokenSource CreateCts(CancelStrategy strategy) [InlineData(CancelStrategy.Manual)] public async Task CancellationDuringOperation_Async_CancelsGracefully(CancelStrategy strategy) { + Skip.UnlessLongRunning(); // because of CLIENT PAUSE impact to unrelated tests + await using var conn = Create(); var db = conn.GetDatabase();