def METHOD_NAME(self):
    # test that if we're doing an exit(0) in shutdown handler *after* the timeout
    # that request will still end up in error state with 500 status code
    resp = self.kphp_server.http_post(
        json=[
            {"op": "register_shutdown_function", "msg": "shutdown_with_exit"},
            {"op": "long_work", "duration": 1.5}
        ])
    self.assertEqual(resp.text, "ERROR")
    self.assertEqual(resp.status_code, 500)
    self.kphp_server.assert_log([
        "Critical error during script execution: timeout exit",
        "running shutdown handler 1"
    ], timeout=5)