Skip to content

Commit 6c93e60

Browse files
committed
evaluate wait_cond before any wait in until(_not)
1 parent 55274be commit 6c93e60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dash/testing/wait.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def until(
1515
poll=0.1,
1616
msg="expected condition not met within timeout",
1717
): # noqa: C0330
18-
res = None
18+
res = wait_cond()
1919
logger.debug(
2020
"start wait.until with method, timeout, poll => %s %s %s",
2121
wait_cond,
@@ -36,7 +36,7 @@ def until(
3636
def until_not(
3737
wait_cond, timeout, poll=0.1, msg="expected condition met within timeout"
3838
): # noqa: C0330
39-
res = True
39+
res = wait_cond()
4040
logger.debug(
4141
"start wait.until_not method, timeout, poll => %s %s %s",
4242
wait_cond,

0 commit comments

Comments
 (0)