From ec3605f5ed4c40b8e1ed58d552dc580d0b58c5dd Mon Sep 17 00:00:00 2001 From: Harenome Ranaivoarivony-Razanajato Date: Fri, 13 Nov 2026 17:58:02 +0100 Subject: [PATCH] test(standard): give a stopped memory run a load-tolerant time to clean up After SIGTERM, the run closes the memory process (3 s for it to exit, then SIGKILL), writes the cancelled results and exits. The test gave this 12 s, which a loaded runner exceeds. Give it 60 s, the same time the test gives the memory process to start. --- app/tests/test_audit_regressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tests/test_audit_regressions.py b/app/tests/test_audit_regressions.py index 497f23e9..092dbbdd 100644 --- a/app/tests/test_audit_regressions.py +++ b/app/tests/test_audit_regressions.py @@ -97,7 +97,7 @@ def test_sigterm_stops_a_real_memory_process_and_writes_cancelled_results(self): time.sleep(.05) self.assertIsNotNone(memory_pid, process.communicate(timeout=1) if process.poll() is not None else 'memory did not start') process.terminate() - out, err = process.communicate(timeout=12) + out, err = process.communicate(timeout=60) self.assertEqual(process.returncode, 143, err.decode()) self.assertTrue(gone(memory_pid), 'memory outlived the run') results = [json.loads(p.read_text()) for p in root.glob('stopped/*/result.json')]