1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 11:09:01 +00:00

device_tests: Round time in test_backoff

Fix random failures on emulator due to minimal communication overhead
This commit is contained in:
Saleem Rashid 2017-12-18 20:00:52 +00:00 committed by Pavol Rusnak
parent fd32c3aa84
commit f2a52400c3

View File

@ -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)