From ae561c370222295688bd0672cb5f4b0c1af6078f Mon Sep 17 00:00:00 2001
From: Fabian Homborg <FHomborg@gmail.com>
Date: Mon, 3 May 2021 11:26:41 +0200
Subject: [PATCH] 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.
---
 tests/pexpects/bind.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pexpects/bind.py b/tests/pexpects/bind.py
index e7bbde277..8f57fedc6 100644
--- a/tests/pexpects/bind.py
+++ b/tests/pexpects/bind.py
@@ -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)