aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_nsjail.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-03-16 20:08:38 +0000
committerGravatar Joe Banks <[email protected]>2021-03-16 20:08:38 +0000
commitd587d9dc41dc96d78dde83b316491bf574d46254 (patch)
treefa99e5abefe2190ff54f24d29b5505f61c048b65 /tests/test_nsjail.py
parentRemove logic for removing remnant cgroups (diff)
Update flooding test to expect code 143
Test was relying on 137 which is SIGKILL, when instead it would receive 143, or SIGTERM.
Diffstat (limited to 'tests/test_nsjail.py')
-rw-r--r--tests/test_nsjail.py2
1 files changed, 1 insertions, 1 deletions
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