From ac03e084fb687e16cc5cb51226cb46cc19ef8ae5 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Fri, 29 Nov 2024 13:26:13 +0100 Subject: [PATCH] test(core): fix thp test on various models of trezor [no changelog] --- core/tests/test_trezor.wire.thp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/tests/test_trezor.wire.thp.py b/core/tests/test_trezor.wire.thp.py index f7f0a835da..576ddab4db 100644 --- a/core/tests/test_trezor.wire.thp.py +++ b/core/tests/test_trezor.wire.thp.py @@ -57,8 +57,9 @@ if utils.USE_THP: gen.send(None) gen.send(cid_req) gen.send(None) + model = bytes(utils.INTERNAL_MODEL, "big") response_data = ( - b"\x0a\x04\x54\x32\x54\x31\x10\x00\x18\x00\x20\x02\x28\x02\x28\x03\x28\x04" + b"\x0a\x04" + model + "\x10\x00\x18\x00\x20\x02\x28\x02\x28\x03\x28\x04" ) response_without_crc = ( b"\x41\xff\xff\x00\x20"