mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 11:49:28 +00:00
tests: a timed-out AX attempt may carry its reason instead of None [skip ci]
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
af6a68691c
commit
918b1f5eec
@@ -381,7 +381,8 @@ def test_ax_executor_blocking_store_read_cannot_delay_task_deletion(setup):
|
||||
started = time.monotonic()
|
||||
try:
|
||||
done, _ = ax.AX(args, store).execute(source, output, PIN, "pin")
|
||||
assert done is None
|
||||
# A result deadline is a failed attempt that names its reason; the lane treats it like None.
|
||||
assert done is None or (done.returncode and "deadline" in done.stderr)
|
||||
assert time.monotonic() - started < 2
|
||||
assert json.loads(log.read_text().splitlines()[-1])["args"][:2] == ["delete", "task"]
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user