Skip to content

Commit 278f54c

Browse files
committed
fix: test
1 parent c1b20e3 commit 278f54c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/devices/test_local_channel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ async def test_hello_success_with_v1_protocol_first(mock_loop: Mock, mock_transp
281281

282282
# Create a channel without the automatic hello mocking
283283
channel = LocalChannel(host=TEST_HOST, local_key=TEST_LOCAL_KEY)
284+
# Clear cached protocol to ensure V1 is tried first
285+
channel._local_protocol_version = None
284286

285287
# Mock _do_hello to succeed for V1 on first attempt
286288
async def mock_do_hello(local_protocol_version: LocalProtocolVersion) -> LocalChannelParams | None:

0 commit comments

Comments
 (0)