From f2a52400c36db91884e53c37a03d9068e8dbd5b1 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Mon, 18 Dec 2017 20:00:52 +0000 Subject: [PATCH] device_tests: Round time in test_backoff Fix random failures on emulator due to minimal communication overhead --- tests/device_tests/test_protect_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/device_tests/test_protect_call.py b/tests/device_tests/test_protect_call.py index 826bab5b7..b0967877a 100644 --- a/tests/device_tests/test_protect_call.py +++ b/tests/device_tests/test_protect_call.py @@ -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)