Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/hermes_cli/test_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2341,6 +2341,7 @@ def test_pub_broadcasts_to_events_subscribers(self, monkeypatch):
# receive_text(). Without this, under heavy CI load the
# receive can race the broadcast and hang until
# pytest-timeout kills us.
time.sleep(1.0)
import queue, threading
recv_q: queue.Queue = queue.Queue()

Expand All @@ -2353,10 +2354,10 @@ def _recv():
t = threading.Thread(target=_recv, daemon=True)
t.start()
try:
received = recv_q.get(timeout=10.0)
received = recv_q.get(timeout=30.0)
except queue.Empty:
raise AssertionError(
"broadcast not received within 10s — server likely "
"broadcast not received within 30s — server likely "
"dropped the frame silently (see _broadcast_event "
"except Exception: pass)"
)
Expand Down