Skip to content

Commit

Permalink
[FIX] test_concurrency: Fix wrong exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia committed Oct 29, 2023
1 parent 1e990fd commit 2642a36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test____recv_packet____close_while_waiting(executor: ThreadPoolExecutor, cli
time.sleep(1.1)

client.close()
assert isinstance(recv_packet.exception(timeout=30), ClientClosedError)
assert isinstance(recv_packet.exception(timeout=30), (ClientClosedError, ConnectionAbortedError))


@pytest.mark.slow
Expand Down

0 comments on commit 2642a36

Please sign in to comment.