Skip to content

Commit 09875a6

Browse files
committed
Attempt to fix #1317.
1 parent f0e5479 commit 09875a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/sync/test_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def stall_connection(self, request):
111111
TimeoutError,
112112
"timed out during handshake",
113113
):
114-
with run_client(server, open_timeout=3 * MS):
114+
# While it shouldn't take 50ms to open a connection, this
115+
# test becomes flaky in CI when setting a smaller timeout,
116+
# even after increasing WEBSOCKETS_TESTS_TIMEOUT_FACTOR.
117+
with run_client(server, open_timeout=5 * MS):
115118
self.fail("did not raise")
116119
finally:
117120
gate.set()

0 commit comments

Comments
 (0)