From 918b1f5eec7d0506c0b1336043731fe92e1e313a Mon Sep 17 00:00:00 2001 From: Marius Ciepluch <11855163+norandom@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:51:07 +0200 Subject: [PATCH] tests: a timed-out AX attempt may carry its reason instead of None [skip ci] Co-Authored-By: Claude Fable 5.1 --- tests/test_ax_executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_ax_executor.py b/tests/test_ax_executor.py index abff6bb..9f846b9 100644 --- a/tests/test_ax_executor.py +++ b/tests/test_ax_executor.py @@ -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: