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:
Fabian Homborg 2021-05-03 11:26:41 +02:00
parent d8c3d667d7
commit ae561c3702

View file

@ -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)