Skip to content

Commit

Permalink
try with generic test
Browse files Browse the repository at this point in the history
  • Loading branch information
andarut committed Jul 17, 2023
1 parent 17816d2 commit aaf4b61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/python/tests/http_server/test_oom_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ def test_oom_from_fork(self):
"start OOM handler from fork_id=0"], timeout=5)

def test_timeout_in_oom_handler(self):
resp = self.kphp_server.http_get("/test_oom_handler?test_case=timeout_in_oom_handler")
self.assertEqual(resp.status_code, 500)
self._generic_test("test_case=timeout_in_oom_handler")
self.kphp_server.assert_log([
"allocations_cnt=[1-9]\\d?,memory_allocated=8\\d{5},estimate_memory_usage\\(arr\\)=8\\d{5}",
# "Warning: Can't allocate \\d+ bytes",
"timeout exit",
], timeout=5)

0 comments on commit aaf4b61

Please sign in to comment.