From 333032f62658e9bbd8d729fa7778c20c4b073fe1 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 14 Apr 2021 18:55:11 +0200 Subject: [PATCH] tests: Increase how long exit_nohang tries This runs in 100ms increments, so there's not a lot of harm in trying longer - it should take the same time everywhere it succeeded before. But I've reproduced failures on FreeBSD 13 on sr.ht, so there's at least one platform where a total time of 1 second isn't enough. Now we do 50 tries, which is 5 seconds. --- tests/pexpects/exit_nohang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pexpects/exit_nohang.py b/tests/pexpects/exit_nohang.py index 9c4a81df0..2292d5f0b 100644 --- a/tests/pexpects/exit_nohang.py +++ b/tests/pexpects/exit_nohang.py @@ -46,7 +46,7 @@ os.kill(fish_pid, signal.SIGTERM) # Loop a bit until the process exits (correct) or stops (incorrrect). # When it exits it should be due to the SIGTERM that we sent it. -for i in range(10): +for i in range(50): pid, status = os.waitpid(fish_pid, os.WUNTRACED | os.WNOHANG) if pid == 0: # No process ready yet, loop again.