Skip to content

Commit 6d1c5e4

Browse files
committed
attempt to fix flaky test
1 parent e692726 commit 6d1c5e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/callbacks/test_basic_callback.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ def update_text(data):
420420
dash_duo.wait_for_text_to_equal("#output-1", "hello world")
421421
assert dash_duo.find_element("#output-1").get_attribute("data-cb") == "hello world"
422422

423+
# Wait for all callbacks to complete
424+
time.sleep(0.1)
425+
423426
# an initial call, one for clearing the input
424427
# and one for each hello world character
425428
assert input_call_count.value == 2 + len("hello world")

0 commit comments

Comments
 (0)