From 854a256b5a1f454cc8baa49f2b628fb9f614ebdb Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 23 Feb 2021 13:04:29 +0100 Subject: [PATCH] test: wait longer for autolock To reduce test failure probability. --- tests/device_tests/test_autolock.py | 4 ++-- tests/device_tests/test_msg_wipedevice.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/device_tests/test_autolock.py b/tests/device_tests/test_autolock.py index 2b2176929..8cc92fe9c 100644 --- a/tests/device_tests/test_autolock.py +++ b/tests/device_tests/test_autolock.py @@ -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) diff --git a/tests/device_tests/test_msg_wipedevice.py b/tests/device_tests/test_msg_wipedevice.py index 9427d4fb5..9e32ea100 100644 --- a/tests/device_tests/test_msg_wipedevice.py +++ b/tests/device_tests/test_msg_wipedevice.py @@ -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])