Skip to content

Commit

Permalink
Bump periods in utils_test.wait_for (#6081)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter authored Apr 7, 2022
1 parent a610f73 commit 6e30766
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 6e30766

Please sign in to comment.