Pin the judge's third-failure message

This commit is contained in:
2026-09-24 23:06:23 +02:00
parent 5ee287950a
commit 7f52755066
+1 -1
View File
@@ -194,7 +194,7 @@ class RunCycle(unittest.TestCase):
open(verdicts, "w").write(plan)
with self.assertRaises(SystemExit) as stopped:
loop.run_cycle("task", "premises", "A name", SESSION_ID)
self.assertNotEqual(stopped.exception.code, 2)
self.assertTrue(stopped.exception.code.startswith("the judge "))
self.assertEqual(open(verdicts).read(), "")
starts = [args[args.index("-p") + 1:][:3] for args in map(json.loads, open(calls)) if "--json-schema" not in args]
self.assertEqual([start[1] for start in starts], ["--name", "--resume", "--name", "--resume", "--resume"])