From fd6b785966442f0f5c45f1bb6ca385617501d5ca Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 10 Oct 2024 13:42:42 +0900 Subject: [PATCH] Extend timeout before SIGKILL We've seen that test_daemon_cleanup_client frequently fails in CI while the same failure is not reproduced in local machines. Extend the timeout to eliminate effect by slow vms used in CI. Change-Id: I7dc098828d60c92d95f6d55ebebd3c0a20f88697 --- oslo_rootwrap/tests/test_functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_rootwrap/tests/test_functional.py b/oslo_rootwrap/tests/test_functional.py index f79f084..f8755a8 100644 --- a/oslo_rootwrap/tests/test_functional.py +++ b/oslo_rootwrap/tests/test_functional.py @@ -277,7 +277,7 @@ class RootwrapDaemonTest(_FunctionalBase, testtools.TestCase): # Start background thread that would kill process in 1 second if it # doesn't die by then def sleep_kill(): - stop.wait(1) + stop.wait(3) if not stop.is_set(): os.kill(process.pid, signal.SIGKILL) threading.Thread(target=sleep_kill).start()