We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc9acf4 commit 1ecfbebCopy full SHA for 1ecfbeb
src/tests/conftest.py
@@ -138,14 +138,16 @@ def _init_ws(self) -> None:
138
self.call("viewport.image.push.observer.add", [{"observer_id": -1}])
139
140
def _drain_initial_messages(
141
- self, max_messages: int = 5, timeout: float = 4.0
+ self, max_messages: int = 5, timeout: float = 10.0
142
) -> None:
143
-
144
self.ws.settimeout(timeout)
145
- for _ in range(max_messages):
+ for i in range(max_messages):
146
try:
147
- _ = self.ws.recv()
+ print(f"{i=}", flush=True)
+ response = self.ws.recv()
148
+ print(f"{response=}", flush=True)
149
except WebSocketTimeoutException:
150
+ print(f"Timeout on message {i}, continuing...", flush=True)
151
break
152
153
0 commit comments