card #71: kept .github/time/delegate.py, .github/time/test_delegate.py (generated)

This commit is contained in:
time committed 2026-10-17 18:23:14 +00:00
1 parent 5c0b2d64df
commit 32c50e17f3
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@ assert code == 0 and last_receipt(log)["id"] != CID and len(w.sent) == 2
w = World()
for kw, why in (({"actor": "mallory"}, "unauthorized"), ({"seat": "haiku"}, "unsupported seat"), ({"seat": "kimi"}, "unsupported seat"),
({"task": "x" * (dg.MAX_TASK + 1)}, "cap is"), ({"task": " "}, "empty"), ({"key": "short"}, "invalid idempotency key"),
({"key": "bad key with spaces"}, "invalid idempotency key"), ({"task": "a\x00b"}, "NUL")):
({"key": "bad key with spaces"}, "invalid idempotency key")):
code, log = dispatch(w, **kw)
assert code == 2 and why in last_receipt(log)["reason"] and last_receipt(log)["state"] == "rejected", (kw, log)
assert w.sent == [] and w.files == {} and w.pushes == 0