def METHOD_NAME(self):
    # test that the timeout timer resets, giving the shutdown functions a chance to complete
    # if they're executed *before* the timeout but after a long-running script
    resp = self.kphp_server.http_post(
        json=[
            {"op": "register_shutdown_function", "msg": "shutdown_after_long_work"},
            {"op": "sleep", "duration": 0.75},
        ])
    self.assertEqual(resp.text, "ok")
    self.assertEqual(resp.status_code, 200)
    self.kphp_server.assert_log(["shutdown function managed to finish"], timeout=5)