Answer stability round 1: 0 🔴, 2 🟡 (0 misread); name the changelog as the repo spells it, test facts not sentences
This commit is contained in:
@@ -220,7 +220,7 @@ class ToolProcess(unittest.TestCase):
|
||||
|
||||
def test_an_interrupt_reaches_the_tool_before_the_run_kills_it(self):
|
||||
# A container's CLI, such as docker compose, stops its container on the SIGINT it is passed, and can't once killed.
|
||||
# The loop ends by itself after about 40 seconds: under mutmut, the interrupt doesn't reach this shell, and an endless one hung the run.
|
||||
# The loop ends by itself after about 40 seconds: under mutmut, the interrupt doesn't reach this shell, and a shell that looped for ever hung the run.
|
||||
with tempfile.TemporaryDirectory() as folder:
|
||||
self.interrupted(folder, "trap 'echo > stopped; exit 130' INT; echo $$ > started; n=0; while [ $n -lt 400 ]; do sleep 0.1; n=$((n+1)); done;")
|
||||
self.assertTrue(pathlib.Path(folder, "stopped").is_file())
|
||||
|
||||
Reference in New Issue
Block a user