Skip to content

Commit

Permalink
Add a test for GraphLayout with scatter (#8025)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bennet committed Jul 24, 2023
1 parent efc7eeb commit 16b0c51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions distributed/diagnostics/tests/test_graph_layout.py
Expand Up @@ -102,11 +102,11 @@ async def test_unique_positions(c, s, a, b):


@gen_cluster(client=True)
async def test_layout_with_priorities(c, s, a, b):
async def test_layout_scatter(c, s, a, b):
gl = GraphLayout(s)
s.add_plugin(gl)

low = c.submit(inc, 1, key="low", priority=1)
mid = c.submit(inc, 2, key="mid", priority=2)
high = c.submit(inc, 3, key="high", priority=3)
await wait([high, mid, low])
data = await c.scatter([1, 2, 3], broadcast=True)
futures = [c.submit(sum, data) for _ in range(5)]
await wait(futures)
assert len(gl.state_updates) > 0

0 comments on commit 16b0c51

Please sign in to comment.