more coverage

This commit is contained in:
J. Nick Koston 2024-02-16 18:08:26 -06:00
parent 60420a0089
commit b312d9340e
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ async def test_connection_lost_closes_connection_and_logs(
protocol.connection_lost(exception)
assert conn.is_connected is False
assert "original message" in caplog.text
with pytest.raises(raised_exception):
with pytest.raises(raised_exception, match="original message"):
await connect_task