Skip to content

Commit 0771de0

Browse files
committed
fix: increase proxy timeout to 30s on Windows
Windows CI has slower process startup times, especially when multiple test classes initialize their fixtures in parallel. Increase the proxy startup timeout from 10s to 30s on Windows to reduce flakiness.
1 parent 1650316 commit 0771de0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dotnet/test/Harness/CapiProxy.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ async Task<string> StartCoreAsync()
7878
}
7979
});
8080

81-
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
81+
// Use longer timeout on Windows due to slower process startup
82+
var timeoutSeconds = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 30 : 10;
83+
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(timeoutSeconds));
8284
cts.Token.Register(() => tcs.TrySetException(new TimeoutException("Timeout waiting for proxy")));
8385

8486
return await tcs.Task;

0 commit comments

Comments
 (0)