Skip to content

Commit 0a0f04f

Browse files
change timeout for join to 10s for stability
1 parent 603cc4c commit 0a0f04f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_video_worker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def test_worker_starts_and_stops_cleanly(
152152
mp_primitives['stop_event'].set()
153153
print("✓ Shutdown signal sent")
154154

155-
# Wait for process to finish (max 2 seconds)
156-
process.join(timeout=2.0)
155+
# Wait for process to finish (max 10 seconds)
156+
process.join(timeout=10.0)
157157

158158
# Verify it stopped
159159
assert not process.is_alive(), "Worker should stop after shutdown signal"
@@ -285,7 +285,7 @@ def test_worker_processes_frame_request(
285285
finally:
286286
# Shutdown
287287
mp_primitives['request_queue'].put((None, None, None))
288-
process.join(timeout=2.0)
288+
process.join(timeout=10.0)
289289
if process.is_alive():
290290
process.terminate()
291291
process.join()
@@ -396,7 +396,7 @@ def test_worker_processes_frame_last_request(
396396
finally:
397397
# Shutdown
398398
mp_primitives['request_queue'].put((None, None, None))
399-
process.join(timeout=2.0)
399+
process.join(timeout=10.0)
400400
if process.is_alive():
401401
process.terminate()
402402
process.join()

0 commit comments

Comments
 (0)