Skip to content

Commit

Permalink
Attempt to fix #1317.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Mar 29, 2023
1 parent f0e5479 commit 09875a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/sync/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ def stall_connection(self, request):
TimeoutError,
"timed out during handshake",
):
with run_client(server, open_timeout=3 * MS):
# While it shouldn't take 50ms to open a connection, this
# test becomes flaky in CI when setting a smaller timeout,
# even after increasing WEBSOCKETS_TESTS_TIMEOUT_FACTOR.
with run_client(server, open_timeout=5 * MS):
self.fail("did not raise")
finally:
gate.set()
Expand Down

0 comments on commit 09875a6

Please sign in to comment.