You've already forked cpp-httplib
Fix Windows problem
This commit is contained in:
@@ -13845,7 +13845,12 @@ TEST_F(SSEIntegrationTest, MaxReconnectAttempts) {
|
|||||||
// Should not have taken too long (max 2 attempts * 50ms + overhead)
|
// Should not have taken too long (max 2 attempts * 50ms + overhead)
|
||||||
auto duration =
|
auto duration =
|
||||||
std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
|
std::chrono::duration_cast<std::chrono::milliseconds>(end - start);
|
||||||
|
#ifdef _WIN32
|
||||||
|
// Windows is much slower for socket connection failures
|
||||||
|
EXPECT_LT(duration.count(), 7000);
|
||||||
|
#else
|
||||||
EXPECT_LT(duration.count(), 1000);
|
EXPECT_LT(duration.count(), 1000);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test: Multi-line data in integration
|
// Test: Multi-line data in integration
|
||||||
|
|||||||
Reference in New Issue
Block a user