Skip to content

Commit

Permalink
test: increase timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Dec 8, 2022
1 parent 7e41a1c commit 463b4a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 463b4a2

Please sign in to comment.