Skip to content

Commit

Permalink
randum up to one second
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Sep 2, 2024
1 parent e5fb18d commit 54db439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/tests/test_nanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ async def test_nanny_restart_timeout(c, s, a):
@gen_cluster(client=True, Worker=Nanny, nthreads=[("", 1)])
async def test_nanny_restart_timeout_stress(c, s, a):
x = await c.scatter(123)
restarts = [a.restart(timeout=random.random() * 0.1) for _ in range(100)]
restarts = [a.restart(timeout=random.random()) for _ in range(100)]
await asyncio.gather(*restarts)

while x.status != "cancelled":
Expand Down

0 comments on commit 54db439

Please sign in to comment.