Answer stability round 2: 0 🔴, 2 🟡 (0 misread); stopped the timeout test's sleep at once, dropped a duplicate test, reported a found issue without a key
This commit is contained in:
@@ -226,7 +226,7 @@ class MachineTest(unittest.TestCase):
|
||||
self.assertEqual((finished.returncode, finished.stdout, finished.stderr), (3, "out\n", "err\n"))
|
||||
|
||||
def test_stops_a_do_epic_that_runs_over_its_time_and_says_so(self) -> None:
|
||||
finished = scenario.Machine(self.folder, self.script("sleep 30"), {}, timeout=1).do_epic("ABC-1")
|
||||
finished = scenario.Machine(self.folder, self.script("exec sleep 30"), {}, timeout=0.2).do_epic("ABC-1")
|
||||
self.assertEqual(finished.returncode, 124)
|
||||
self.assertIn("ran over 1 seconds", finished.stderr)
|
||||
self.assertIn("ran over 0.2 seconds", finished.stderr)
|
||||
self.assertIn("ABC-1", finished.stderr)
|
||||
|
||||
Reference in New Issue
Block a user