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
This commit is contained in:
parent
8ea880af3f
commit
fd6b785966
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user