device_tests: Round time in test_backoff

Fix random failures on emulator due to minimal communication overhead
pull/25/head
Saleem Rashid 7 years ago committed by Pavol Rusnak
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…
Cancel
Save