Skip to content

Commit 377a8f1

Browse files
authored
Merge pull request #6 from utensils/develop
🐌 fix(tests): add sleep to fix macOS CI timeout race condition
2 parents 9128902 + d432864 commit 377a8f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_server_termination.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ def run_shutdown():
325325
# In a proper implementation, there should be a timeout mechanism
326326
pass
327327

328+
# Give a little time for the shutdown to start before checking
329+
# This helps with slower CI environments, especially on macOS
330+
await asyncio.sleep(0.5)
331+
328332
# Check if shutdown was attempted
329333
mock_shutdown.assert_called_once()
330334

0 commit comments

Comments
 (0)