Skip to content

Commit 725b66e

Browse files
committed
Fix remaining smoketests
1 parent a6ae2bc commit 725b66e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/smoketests/sdk/test_async_devbox.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ async def test_resume_async(self, async_sdk_client: AsyncRunloopSDK) -> None:
365365
name=unique_name("sdk-async-devbox-resume-async"),
366366
launch_parameters={"resource_size_request": "SMALL", "keep_alive_time_seconds": 60 * 5},
367367
)
368+
# wait for devbox to be running
369+
await devbox.await_running(polling_config=PollingConfig(timeout_seconds=120.0, interval_seconds=5.0))
368370

369371
try:
370372
# Suspend the devbox
@@ -385,7 +387,7 @@ async def test_resume_async(self, async_sdk_client: AsyncRunloopSDK) -> None:
385387

386388
# Status might still be suspended or transitioning
387389
info_after_resume = await devbox.get_info()
388-
assert info_after_resume.status in ["suspended", "running", "starting"]
390+
assert info_after_resume.status in ["suspended", "running", "starting", "provisioning"]
389391

390392
# Now wait for running state explicitly
391393
running_info = await devbox.await_running(

tests/smoketests/sdk/test_devbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def test_resume_async(self, sdk_client: RunloopSDK) -> None:
384384

385385
# Status might still be suspended or transitioning
386386
info_after_resume = devbox.get_info()
387-
assert info_after_resume.status in ["suspended", "running", "starting"]
387+
assert info_after_resume.status in ["suspended", "running", "starting", "provisioning"]
388388

389389
# Now wait for running state explicitly
390390
running_info = devbox.await_running(

0 commit comments

Comments
 (0)