Skip to content

Commit

Permalink
Fix test_server_closed
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyplanet committed Nov 25, 2024
1 parent f0fe64c commit 62d3195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/xoscar/backends/indigen/tests/test_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,9 @@ async def test_server_closed():
process.kill()
process.join()

with pytest.raises(ServerClosed):
with pytest.raises(Exception):
# process already been killed,
# ServerClosed will be raised
# ServerClosed or ConnectionError will be raised
await task

assert not process.is_alive()
Expand Down

0 comments on commit 62d3195

Please sign in to comment.