mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
bind tests: Sleep shorter, more often
We still wait 5s, but with higher resolution. This allows that test to succeed within 100ms, instead of within 1s.
This commit is contained in:
parent
d8c3d667d7
commit
ae561c3702
1 changed files with 2 additions and 2 deletions
|
@ -326,11 +326,11 @@ expect_prompt()
|
|||
send("\x1A")
|
||||
expect_str("exit")
|
||||
|
||||
for t in range(0, 5):
|
||||
for t in range(0, 50):
|
||||
if not sp.spawn.isalive():
|
||||
break
|
||||
# This is cheesy, but on CI with thread-sanitizer this can be slow enough that the process is still running, so we sleep for a bit.
|
||||
sleep(1)
|
||||
sleep(0.1)
|
||||
else:
|
||||
print("Fish did not exit via binding!")
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue