Skip to content

Commit

Permalink
Fix intermittent test_profile_plot failure
Browse files Browse the repository at this point in the history
Fixes dask#6454
  • Loading branch information
mrocklin committed May 26, 2022
1 parent 5e9e97f commit 77dfca6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions distributed/dashboard/tests/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def test_basic(Component):
async def test_profile_plot(c, s, a, b):
p = ProfilePlot()
assert not p.source.data["left"]
await c.gather(c.map(slowinc, range(10), delay=0.05))
p.update(a.profile_recent)
assert len(p.source.data["left"]) >= 1
while not len(p.source.data["left"]):
await c.submit(slowinc, 1, pure=False, delay=0.1)
p.update(a.profile_recent)


@gen_cluster(client=True, clean_kwargs={"threads": False})
Expand All @@ -40,8 +40,8 @@ async def test_profile_time_plot(c, s, a, b):
ap = ProfileTimePlot(a, doc=curdoc())
ap.trigger_update()

assert len(sp.source.data["left"]) <= 1
assert len(ap.source.data["left"]) <= 1
assert not len(sp.source.data["left"])
assert not len(ap.source.data["left"])

await c.gather(c.map(slowinc, range(10), delay=0.05))
ap.trigger_update()
Expand Down

0 comments on commit 77dfca6

Please sign in to comment.