1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

test: wait longer for autolock

To reduce test failure probability.
This commit is contained in:
Martin Milata 2021-02-23 13:04:29 +01:00
parent f780cbdb17
commit 854a256b5a
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ def test_apply_auto_lock_delay(client):
client.set_expected_responses([messages.Address])
get_test_address(client)
time.sleep(10.1) # sleep more than auto-lock delay
time.sleep(10.5) # sleep more than auto-lock delay
with client:
client.use_pin_sequence([PIN4])
client.set_expected_responses([pin_request(client), messages.Address])
@ -127,7 +127,7 @@ def test_autolock_cancels_ui(client):
# send an ack, do not read response
client._raw_write(messages.ButtonAck())
# sleep more than auto-lock delay
time.sleep(10.1)
time.sleep(10.5)
resp = client._raw_read()
assert isinstance(resp, messages.Failure)

View File

@ -55,7 +55,7 @@ def test_autolock_not_retained(client):
client.use_pin_sequence([PIN4, PIN4])
device.reset(client, skip_backup=True, pin_protection=True)
time.sleep(10.1)
time.sleep(10.5)
with client:
# after sleeping for the pre-wipe autolock amount, Trezor must still be unlocked
client.set_expected_responses([messages.Address])