From 463b4a276f83f6a88df911c8fd5ec29acdb54c56 Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Thu, 8 Dec 2022 16:14:49 +0100 Subject: [PATCH] test: increase timeouts --- tests/unit/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/common.py b/tests/unit/common.py index 15309ec03..32480f6e6 100644 --- a/tests/unit/common.py +++ b/tests/unit/common.py @@ -3,7 +3,7 @@ from ipyvue import VueWidget -def repeat_while_false(f, timeout=2): +def repeat_while_false(f, timeout=10): while True: result = f() if result: @@ -17,11 +17,11 @@ def repeat_while_false(f, timeout=2): time.sleep(0.1) -def repeat_while_true(f, timeout=1): +def repeat_while_true(f, timeout=10): repeat_while_false(lambda: not f(), timeout) -def busy_wait_compare(getter, expected, iteration_delay=0.001, max_iterations=1000): +def busy_wait_compare(getter, expected, iteration_delay=0.001, max_iterations=10_000): iterations = 0 previous_value = None while True: