Skip to content

Commit 0a0bc54

Browse files
committed
Lengthen unusually short test timeouts
1 parent 76c064a commit 0a0bc54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ModelContextProtocol.Tests/Server/DistributedCacheEventStreamStoreTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ public async Task ReadEventsAsync_RespectsModeSwitchFromStreamingToPolling()
10471047

10481048
// Start reading in streaming mode (will wait for new events)
10491049
using var cts = CancellationTokenSource.CreateLinkedTokenSource(CancellationToken);
1050-
cts.CancelAfter(TimeSpan.FromSeconds(3));
1050+
cts.CancelAfter(TimeSpan.FromSeconds(10));
10511051
var events = new List<SseItem<JsonRpcMessage?>>();
10521052
var readCompleted = false;
10531053

@@ -1065,7 +1065,7 @@ public async Task ReadEventsAsync_RespectsModeSwitchFromStreamingToPolling()
10651065

10661066
// Assert - Read should complete within timeout after switching to polling mode
10671067
using var timeoutCts = CancellationTokenSource.CreateLinkedTokenSource(CancellationToken);
1068-
timeoutCts.CancelAfter(TimeSpan.FromSeconds(1));
1068+
timeoutCts.CancelAfter(TimeSpan.FromSeconds(10));
10691069
await readTask.WaitAsync(timeoutCts.Token);
10701070
Assert.True(readCompleted);
10711071
Assert.Empty(events); // No new events were written after the one we used to create the reader

0 commit comments

Comments
 (0)