From 6e3247d8e59c9f05434e2b34a0ab3e78f544f441 Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Sat, 30 Sep 2023 18:11:16 +0100 Subject: [PATCH] debug --- test/end2end/session/test_fallback_v1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/end2end/session/test_fallback_v1.py b/test/end2end/session/test_fallback_v1.py index ea0491a54ba5..96fc9d974529 100644 --- a/test/end2end/session/test_fallback_v1.py +++ b/test/end2end/session/test_fallback_v1.py @@ -1,3 +1,4 @@ +import time from time import sleep from unittest import TestCase @@ -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)