@@ -102,17 +102,6 @@ async def test_connection_failure(local_channel: LocalChannel, mock_loop: Mock)
102102 assert local_channel ._is_connected is False
103103
104104
105- async def test_already_connected_warning (
106- local_channel : LocalChannel , mock_loop : Mock , caplog : pytest .LogCaptureFixture
107- ) -> None :
108- """Test warning when trying to connect when already connected."""
109- await local_channel .connect ()
110- await local_channel .connect () # Second connection attempt
111-
112- assert "Already connected" in caplog .text
113- assert mock_loop .create_connection .call_count == 1
114-
115-
116105async def test_close_connection (local_channel : LocalChannel , mock_loop : Mock , mock_transport : Mock ) -> None :
117106 """Test closing the connection."""
118107 await local_channel .connect ()
@@ -228,7 +217,6 @@ async def test_connection_lost_callback(
228217
229218 assert local_channel ._is_connected is False
230219 assert local_channel ._transport is None
231- assert "Connection lost to 192.168.1.100" in caplog .text
232220
233221
234222async def test_connection_lost_without_exception (
@@ -242,7 +230,6 @@ async def test_connection_lost_without_exception(
242230
243231 assert local_channel ._is_connected is False
244232 assert local_channel ._transport is None
245- assert "Connection lost to 192.168.1.100" in caplog .text
246233
247234
248235async def test_hello_fallback_to_l01_protocol (mock_loop : Mock , mock_transport : Mock ) -> None :
0 commit comments