1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-20 09:09:02 +00:00

fix unit tests

This commit is contained in:
M1nd3r 2025-04-14 18:03:35 +02:00
parent 4dd362392c
commit 7b8c93d7c5
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class TestConfig(unittest.TestCase):
from storage import common
from storage.device import _CRED_AUTH_KEY_COUNTER, _NAMESPACE
common.set(_NAMESPACE, _CRED_AUTH_KEY_COUNTER, b"\xff\xff\xff\xfe")
common.set(_NAMESPACE, _CRED_AUTH_KEY_COUNTER, b"\xff\xff\xff\xfe", True)
device.increment_cred_auth_key_counter()
self.assertEqual(device.get_cred_auth_key_counter(), b"\xff\xff\xff\xff")
with self.assertRaises(AssertionError) as e:

View File

@ -117,7 +117,7 @@ class TestTrezorHostProtocol(unittest.TestCase):
gen.send(None)
self.assertEqual(len(self.interface.data), 1)
expected_response = b"?##\x00\x03\x00\x00\x00\x14\x08\x10"
expected_response = b"?##\x00\x03\x00\x00\x00\x14\x08\x11"
self.assertEqual(
self.interface.data[-1][: len(expected_response)], expected_response
)