Skip to content

Commit ffebfa8

Browse files
committed
fix(e2e): increase run_sync timeout to 180s, warn on undeploy failure
1 parent 39a0237 commit ffebfa8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/e2e/test_cpu_smoke.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,24 @@ def test_deploy_invoke_undeploy(self, tmp_path: Path) -> None:
7979

8080
# Invoke
8181
runpod.api_key = env.get("RUNPOD_API_KEY")
82-
output = runpod.Endpoint(endpoint_id).run_sync({"msg": "smoke"}, timeout=120)
82+
output = runpod.Endpoint(endpoint_id).run_sync({"msg": "smoke"}, timeout=180)
8383

8484
assert output is not None, "run_sync returned None"
8585
assert output.get("echo") == "smoke", f"Unexpected output: {output}"
8686
assert output.get("status") == "ok", f"Unexpected status: {output}"
8787

8888
finally:
8989
# Always undeploy by name
90-
subprocess.run(
90+
undeploy = subprocess.run(
9191
["uv", "run", "flash", "undeploy", WORKER_NAME, "--force"],
9292
cwd=tmp_path,
9393
env=env,
9494
capture_output=True,
9595
text=True,
9696
timeout=60,
9797
)
98+
if undeploy.returncode != 0:
99+
print(
100+
f"WARNING: undeploy failed (exit {undeploy.returncode}):\n"
101+
f"stdout: {undeploy.stdout}\nstderr: {undeploy.stderr}"
102+
)

0 commit comments

Comments
 (0)