Answer the first round: one clock read, the limit's message and time zone on stderr, plainer help and comments

This commit is contained in:
2026-10-02 22:49:39 +02:00
parent e7ff869398
commit 5a481d3ebf
9 changed files with 36 additions and 27 deletions
+2 -2
View File
@@ -399,8 +399,8 @@ class Cycles(unittest.TestCase):
self.assertEqual(run.code, 130)
self.assertEqual(run.roles(), ["worker"] * 4 + ["judge"] * 2 + ["worker"])
self.assertEqual([round(seconds, -1) for seconds in run.sleeps], [60, 3720, 60, 600])
self.assertIn(f"the worker hit a usage limit; retrying at {time.strftime('%Y-%m-%d %H:%M', time.localtime(resets_at + 120))}\n", run.stderr)
self.assertIn("the judge hit a usage limit; retrying at ", run.stderr)
self.assertIn(f"the worker hit a usage limit (You've hit your session limit); retrying at {time.strftime('%Y-%m-%d %H:%M %Z', time.localtime(resets_at + 120))}\n", run.stderr)
self.assertIn("the judge hit a usage limit (You've hit your session limit); retrying at ", run.stderr)
def test_retries_the_judge_alone_when_its_verdict_quotes_nothing_in_the_transcript(self):
checkout = Checkout(self)