mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
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.
This commit is contained in:
parent
ef96a6614b
commit
333032f626
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user