Skip to content

Commit 6da6957

Browse files
committed
Increase MockSerial subprocess timeout to 10s for slow CI spawn
1 parent 9ff104c commit 6da6957

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎parol6/server/transports/mock_serial_adapter.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def connect(self, port: str | None = None) -> bool:
157157
self._process.start()
158158

159159
# Wait for first frame
160-
if not self._wait_for_first_frame(timeout=2.0):
160+
# Timeout needs to be long enough for subprocess startup on Windows/macOS
161+
# with spawn (can take several seconds on CI runners)
162+
if not self._wait_for_first_frame(timeout=10.0):
161163
# Check if subprocess died (multiprocessing.Process uses is_alive/exitcode)
162164
if self._process is not None:
163165
if not self._process.is_alive():
@@ -190,7 +192,7 @@ def connect(self, port: str | None = None) -> bool:
190192
self._cleanup()
191193
return False
192194

193-
def _wait_for_first_frame(self, timeout: float = 2.0) -> bool:
195+
def _wait_for_first_frame(self, timeout: float = 10.0) -> bool:
194196
"""Wait for the subprocess to produce its first frame."""
195197
deadline = time.time() + timeout
196198
while time.time() < deadline:

0 commit comments

Comments
 (0)