mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
device_tests: Round time in test_backoff
Fix random failures on emulator due to minimal communication overhead
This commit is contained in:
parent
fd32c3aa84
commit
f2a52400c3
@ -122,7 +122,7 @@ class TestProtectCall(common.TrezorTest):
|
||||
expected = 0
|
||||
else:
|
||||
expected = (2 ** (attempts - 1)) - 1
|
||||
got = time.time() - start
|
||||
got = round(time.time() - start, 2)
|
||||
|
||||
msg = "Pin delay expected to be at least %s seconds, got %s" % (expected, got)
|
||||
print(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user