Skip to content

Commit afd66ef

Browse files
authored
test fix; skip CLIENT PAUSE tests unless long-running enabled (#2916)
1 parent 5f58617 commit afd66ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/StackExchange.Redis.Tests/CancellationTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public async Task WithCancellation_ValidToken_OperationSucceeds()
4343
[Fact]
4444
public async Task WithTimeout_ShortTimeout_Async_ThrowsOperationCanceledException()
4545
{
46+
Skip.UnlessLongRunning(); // because of CLIENT PAUSE impact to unrelated tests
47+
4648
await using var conn = Create();
4749
var db = conn.GetDatabase();
4850

@@ -119,6 +121,8 @@ private static CancellationTokenSource CreateCts(CancelStrategy strategy)
119121
[InlineData(CancelStrategy.Manual)]
120122
public async Task CancellationDuringOperation_Async_CancelsGracefully(CancelStrategy strategy)
121123
{
124+
Skip.UnlessLongRunning(); // because of CLIENT PAUSE impact to unrelated tests
125+
122126
await using var conn = Create();
123127
var db = conn.GetDatabase();
124128

0 commit comments

Comments
 (0)