@@ -102,16 +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-
115105
116106async def test_close_connection (local_channel : LocalChannel , mock_loop : Mock , mock_transport : Mock ) -> None :
117107 """Test closing the connection."""
@@ -228,7 +218,6 @@ async def test_connection_lost_callback(
228218
229219 assert local_channel ._is_connected is False
230220 assert local_channel ._transport is None
231- assert "Connection lost to 192.168.1.100" in caplog .text
232221
233222
234223async def test_connection_lost_without_exception (
@@ -242,7 +231,6 @@ async def test_connection_lost_without_exception(
242231
243232 assert local_channel ._is_connected is False
244233 assert local_channel ._transport is None
245- assert "Connection lost to 192.168.1.100" in caplog .text
246234
247235
248236async def test_hello_fallback_to_l01_protocol (mock_loop : Mock , mock_transport : Mock ) -> None :
0 commit comments