Skip to content

Commit 3bacb8c

Browse files
committed
adjusting flaky test for typing speed
1 parent d541e37 commit 3bacb8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/async_tests/test_async_callbacks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ async def set_path(n):
376376
dash_duo.wait_for_text_to_equal("#out", '[{"a": "/2:a"}] - /2')
377377

378378

379+
@flaky.flaky(max_runs=3)
379380
def test_async_cbsc008_wildcard_prop_callbacks(dash_duo):
380381
if not is_dash_async():
381382
return
@@ -384,7 +385,7 @@ def test_async_cbsc008_wildcard_prop_callbacks(dash_duo):
384385
app = Dash(__name__)
385386
app.layout = html.Div(
386387
[
387-
dcc.Input(id="input", value="initial value"),
388+
dcc.Input(id="input", value="initial value", debounce=False),
388389
html.Div(
389390
html.Div(
390391
[
@@ -427,6 +428,7 @@ async def update_text(data):
427428
for key in "hello world":
428429
with lock:
429430
input1.send_keys(key)
431+
time.sleep(0.05) # allow some time for debounced callback to be sent
430432

431433
dash_duo.wait_for_text_to_equal("#output-1", "hello world")
432434
assert dash_duo.find_element("#output-1").get_attribute("data-cb") == "hello world"

0 commit comments

Comments
 (0)