File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/ModelContextProtocol.Tests/Server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments