Secure, Fast, and Extensible Sandbox runtime for AI agents.
fix(python): wait for Running before pausing in the pause/resume state test
高然3038d0d4f08c
diff --git a/tests/python/tests/test_fsb_e2e.py b/tests/python/tests/test_fsb_e2e.pyindex 19d34405f..6e6d283ae 100644--- a/tests/python/tests/test_fsb_e2e.py+++ b/tests/python/tests/test_fsb_e2e.py@@ -449,6 +449,17 @@ class TestFsbE2E:metadata={"origin": "fast-sandbox-env-pause"},)try:+ # Pause a RUNNING sandbox: on a warm pool the guest serves execd+ # almost immediately, and a pause fired before the Sandbox CR+ # settles loses its intent (the controller never sees it — the+ # CI run on 2026-10-21 swallowed a pause fired ~500ms after+ # create). Wait for Running first.+ await _wait_until(+ lambda: _state_is(manager, sandbox.id, "Running"),+ timedelta(minutes=3),+ "Running",+ )+# State markers written before the checkpoint.await sandbox.files.write_file("/tmp/fsb-state.txt", "pause-state-check")await sandbox.commands.run("echo ram-state-check > /dev/shm/fsb-mem.txt")