Skip to content

Commit 6a3965b

Browse files
committed
test(retry_until): Return truthy when True, False with timeout raise=False
1 parent 036642e commit 6a3965b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libtmux/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ def retry_until(
8888
if raises:
8989
raise WaitTimeout()
9090
else:
91-
break
91+
return False
9292
time.sleep(interval)
93+
return True
9394

9495

9596
def get_test_session_name(server, prefix=TEST_SESSION_PREFIX):

0 commit comments

Comments
 (0)