forgetest: a diag start is 202 Accepted with started:true

forgectrl answers a started diagnostic with 202 (an async job); the
cooling.flow-verify test asserted 200 and failed on the bench before the
diagnostic ran. No catalog consequence beyond the test's own source
hash.
This commit is contained in:
ScottW514
2026-08-16 13:08:48 -04:00
parent e19e7c5304
commit a4b757add5
+2 -1
View File
@@ -28,7 +28,8 @@ def flow_verify(ctx):
ctx.check(not body.get("running"), "a diagnostic is already running (%s)", body.get("tool"))
st, body = fc.post("/diag/flow-verify")
ctx.log("POST /diag/flow-verify -> %s %s", st, body if isinstance(body, dict) else "")
ctx.check(st == 200, "could not start flow-verify (%s %s)", st, body)
ctx.check(st == 202 and isinstance(body, dict) and body.get("started") is True,
"could not start flow-verify (%s %s)", st, body)
last_phase = None
result = None
t0 = time.time()