Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 30, 2023
1 parent c9f352e commit 6e3247d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/end2end/session/test_fallback_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import time
from time import sleep
from unittest import TestCase

Expand Down Expand Up @@ -28,8 +29,12 @@ def new_msg(msg):

def wait_for_n_messages(n):
nonlocal messages
t = time.time()
while len(messages) < n:
sleep(0.1)
if time.time() - t > 10:
print("taking too long! aborting wait, let tests fails")
break

self.core.bus.on("message", new_msg)

Expand Down

0 comments on commit 6e3247d

Please sign in to comment.