mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
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
This commit is contained in:
parent
685f24b454
commit
00a3f24731
@ -45,7 +45,7 @@ class TestMsgResetDeviceT2(TrezorTest):
|
|||||||
assert btn_code == B.ResetDevice
|
assert btn_code == B.ResetDevice
|
||||||
# 12 words, 3 pages
|
# 12 words, 3 pages
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
time.sleep(0.3)
|
time.sleep(1)
|
||||||
words.extend(self.client.debug.state().reset_word.split())
|
words.extend(self.client.debug.state().reset_word.split())
|
||||||
if i < 2:
|
if i < 2:
|
||||||
self.client.debug.swipe_down()
|
self.client.debug.swipe_down()
|
||||||
@ -55,7 +55,7 @@ class TestMsgResetDeviceT2(TrezorTest):
|
|||||||
|
|
||||||
# check backup words
|
# check backup words
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
time.sleep(0.3)
|
time.sleep(1)
|
||||||
index = self.client.debug.state().reset_word_pos
|
index = self.client.debug.state().reset_word_pos
|
||||||
self.client.debug.input(words[index])
|
self.client.debug.input(words[index])
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class TestMsgResetDeviceT2(TrezorTest):
|
|||||||
assert btn_code == B.ResetDevice
|
assert btn_code == B.ResetDevice
|
||||||
# 12 words, 3 pages
|
# 12 words, 3 pages
|
||||||
for i in range(3):
|
for i in range(3):
|
||||||
time.sleep(0.3)
|
time.sleep(1)
|
||||||
words.extend(self.client.debug.state().reset_word.split())
|
words.extend(self.client.debug.state().reset_word.split())
|
||||||
if i < 2:
|
if i < 2:
|
||||||
self.client.debug.swipe_down()
|
self.client.debug.swipe_down()
|
||||||
@ -142,7 +142,7 @@ class TestMsgResetDeviceT2(TrezorTest):
|
|||||||
|
|
||||||
# check backup words
|
# check backup words
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
time.sleep(0.3)
|
time.sleep(1)
|
||||||
index = self.client.debug.state().reset_word_pos
|
index = self.client.debug.state().reset_word_pos
|
||||||
self.client.debug.input(words[index])
|
self.client.debug.input(words[index])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user