This commit is contained in:
Jonas Bengtsson
2026-10-07 07:40:56 +02:00
parent c8b655111e
commit 9f3272094e
17 changed files with 2243 additions and 89 deletions
+4 -2
View File
@@ -283,8 +283,10 @@ class TestEnvControl:
assert st["sim_time_ms"] > 0
r = await client.post("/api/env/reset")
assert r.status_code == 200
st = (await client.get("/api/env")).json()
assert st["sim_time_ms"] == 0.0 # deterministic fresh episode
# the reset RESPONSE carries the post-reset status: asserting
# on a follow-up GET would race the running 10 ms ticker
# (which legitimately ticks between the two requests)
assert r.json()["sim_time_ms"] == 0.0 # deterministic fresh episode
await client.post("/api/env/stop")
async def test_restart_fresh_instance(self, client, app):