Skip to content

Commit 1ecfbeb

Browse files
committed
restore conftest loop
1 parent bc9acf4 commit 1ecfbeb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/tests/conftest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,16 @@ def _init_ws(self) -> None:
138138
self.call("viewport.image.push.observer.add", [{"observer_id": -1}])
139139

140140
def _drain_initial_messages(
141-
self, max_messages: int = 5, timeout: float = 4.0
141+
self, max_messages: int = 5, timeout: float = 10.0
142142
) -> None:
143-
144143
self.ws.settimeout(timeout)
145-
for _ in range(max_messages):
144+
for i in range(max_messages):
146145
try:
147-
_ = self.ws.recv()
146+
print(f"{i=}", flush=True)
147+
response = self.ws.recv()
148+
print(f"{response=}", flush=True)
148149
except WebSocketTimeoutException:
150+
print(f"Timeout on message {i}, continuing...", flush=True)
149151
break
150152

151153

0 commit comments

Comments
 (0)