diff --git a/test/test.cc b/test/test.cc index 7907ccd..d99b8a5 100644 --- a/test/test.cc +++ b/test/test.cc @@ -13845,7 +13845,12 @@ TEST_F(SSEIntegrationTest, MaxReconnectAttempts) { // Should not have taken too long (max 2 attempts * 50ms + overhead) auto duration = std::chrono::duration_cast(end - start); +#ifdef _WIN32 + // Windows is much slower for socket connection failures + EXPECT_LT(duration.count(), 7000); +#else EXPECT_LT(duration.count(), 1000); +#endif } // Test: Multi-line data in integration