From fd32c3aa8474b1f35ea335a726ce3b6dd05a3085 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 16 Dec 2017 21:37:21 +0000 Subject: [PATCH] device_tests: Fix test_protect_call --- 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 f70ed8fc1..826bab5b7 100644 --- a/tests/device_tests/test_protect_call.py +++ b/tests/device_tests/test_protect_call.py @@ -121,7 +121,7 @@ class TestProtectCall(common.TrezorTest): if attempts <= 1: expected = 0 else: - expected = (2 ** (attempts - 2)) + expected = (2 ** (attempts - 1)) - 1 got = time.time() - start msg = "Pin delay expected to be at least %s seconds, got %s" % (expected, got)