From d587d9dc41dc96d78dde83b316491bf574d46254 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Tue, 16 Mar 2021 20:08:38 +0000 Subject: Update flooding test to expect code 143 Test was relying on 137 which is SIGKILL, when instead it would receive 143, or SIGTERM. --- tests/test_nsjail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_nsjail.py') diff --git a/tests/test_nsjail.py b/tests/test_nsjail.py index c0e43b6..4d4676b 100644 --- a/tests/test_nsjail.py +++ b/tests/test_nsjail.py @@ -186,7 +186,7 @@ class NsJailTests(unittest.TestCase): """).strip() result = self.nsjail.python3(stdout_flood) - self.assertEqual(result.returncode, 137) + self.assertEqual(result.returncode, 143) def test_large_output_is_truncated(self): chunk = "a" * READ_CHUNK_SIZE -- cgit v1.2.3