1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 11:39:03 +00:00

tests: reduce test_protect_call.py duration from 26 seconds to 5

This commit is contained in:
Pavol Rusnak 2018-09-12 20:37:12 +02:00
parent 6074903d6b
commit 045c078a50
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -135,7 +135,7 @@ class TestProtectCall(TrezorTest):
print(msg) print(msg)
assert got >= expected assert got >= expected
for attempt in range(1, 6): for attempt in range(1, 4):
start = time.time() start = time.time()
with pytest.raises(PinException): with pytest.raises(PinException):
self._some_protected_call(False, True, False) self._some_protected_call(False, True, False)