From 00a3f24731a4a1c55711ec85d67240c6dceda455 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 16 Oct 2018 17:17:08 +0200 Subject: [PATCH] device_tests: raise timeout in TestMsgResetDeviceT2 because swipe_down action is slow and it might not finish in time for reading reset_words, so you read the same reset_words twice --- trezorlib/tests/device_tests/test_msg_resetdevice_t2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py b/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py index b90ce4df3..ba38e4671 100644 --- a/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py +++ b/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py @@ -45,7 +45,7 @@ class TestMsgResetDeviceT2(TrezorTest): assert btn_code == B.ResetDevice # 12 words, 3 pages for i in range(3): - time.sleep(0.3) + time.sleep(1) words.extend(self.client.debug.state().reset_word.split()) if i < 2: self.client.debug.swipe_down() @@ -55,7 +55,7 @@ class TestMsgResetDeviceT2(TrezorTest): # check backup words for _ in range(2): - time.sleep(0.3) + time.sleep(1) index = self.client.debug.state().reset_word_pos self.client.debug.input(words[index]) @@ -132,7 +132,7 @@ class TestMsgResetDeviceT2(TrezorTest): assert btn_code == B.ResetDevice # 12 words, 3 pages for i in range(3): - time.sleep(0.3) + time.sleep(1) words.extend(self.client.debug.state().reset_word.split()) if i < 2: self.client.debug.swipe_down() @@ -142,7 +142,7 @@ class TestMsgResetDeviceT2(TrezorTest): # check backup words for _ in range(2): - time.sleep(0.3) + time.sleep(1) index = self.client.debug.state().reset_word_pos self.client.debug.input(words[index])