Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Jun 23, 2021
1 parent b71340a commit 66b9a16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distributed/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,9 @@ async def connect_to_server():
assert pool._connecting
close_fut = asyncio.create_task(pool.close())

with pytest.raises(CommClosedError, match="ConnectionPool closed already"):
with pytest.raises(
CommClosedError, match="ConnectionPool not running. Status: Status.closed"
):
await asyncio.gather(*tasks)

await close_fut
Expand Down

0 comments on commit 66b9a16

Please sign in to comment.