🚧 WIP
This commit is contained in:
+4
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user