Skip to content

Commit

Permalink
Merge branch 'main' into stimulus-id-contextvars-explicit-handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Apr 8, 2022
2 parents 0639cbf + 6e30766 commit bfcbdb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ def popen(args: list[str], flush_output: bool = True, **kwargs):
print("-" * 80)


def wait_for(predicate, timeout, fail_func=None, period=0.001):
def wait_for(predicate, timeout, fail_func=None, period=0.05):
deadline = time() + timeout
while not predicate():
sleep(period)
Expand All @@ -1236,7 +1236,7 @@ def wait_for(predicate, timeout, fail_func=None, period=0.001):
pytest.fail(f"condition not reached until {timeout} seconds")


async def async_wait_for(predicate, timeout, fail_func=None, period=0.001):
async def async_wait_for(predicate, timeout, fail_func=None, period=0.05):
deadline = time() + timeout
while not predicate():
await asyncio.sleep(period)
Expand Down

0 comments on commit bfcbdb0

Please sign in to comment.