diff --git a/tests/test_ezsp.py b/tests/test_ezsp.py index 5c2933eb..6121d84f 100644 --- a/tests/test_ezsp.py +++ b/tests/test_ezsp.py @@ -183,7 +183,7 @@ async def test_form_network_fail_stack_status(ezsp_f): def test_receive_new(ezsp_f): callback = MagicMock() ezsp_f.add_callback(callback) - ezsp_f.frame_received(b"\x00\xff\x00\x04\x05\x06") + ezsp_f.frame_received(b"\x00\xff\x00\x04\x05\x06\x00") assert callback.call_count == 1 diff --git a/tests/test_ezsp_protocol.py b/tests/test_ezsp_protocol.py index f9dd25d2..6b727754 100644 --- a/tests/test_ezsp_protocol.py +++ b/tests/test_ezsp_protocol.py @@ -29,7 +29,7 @@ async def test_command(prot_hndl): def test_receive_reply(prot_hndl): callback_mock = MagicMock(spec_set=asyncio.Future) prot_hndl._awaiting[0] = (0, prot_hndl.COMMANDS["version"][2], callback_mock) - prot_hndl(b"\x00\xff\x00\x04\x05\x06") + prot_hndl(b"\x00\xff\x00\x04\x05\x06\x00") assert 0 not in prot_hndl._awaiting assert callback_mock.set_exception.call_count == 0 @@ -42,7 +42,7 @@ def test_receive_reply_after_timeout(prot_hndl): callback_mock = MagicMock(spec_set=asyncio.Future) callback_mock.set_result.side_effect = asyncio.InvalidStateError() prot_hndl._awaiting[0] = (0, prot_hndl.COMMANDS["version"][2], callback_mock) - prot_hndl(b"\x00\xff\x00\x04\x05\x06") + prot_hndl(b"\x00\xff\x00\x04\x05\x06\x00") assert 0 not in prot_hndl._awaiting assert callback_mock.set_exception.call_count == 0