mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 23:38:09 +00:00
tests: increase timeout for emulators to 30s
This commit is contained in:
parent
101d2e5df6
commit
8d2b32332b
@ -99,7 +99,7 @@ class EmulatorWrapper:
|
|||||||
args, cwd=self.workdir.name, env=env, stdout=open(os.devnull, "w")
|
args, cwd=self.workdir.name, env=env, stdout=open(os.devnull, "w")
|
||||||
)
|
)
|
||||||
# wait until emulator is listening
|
# wait until emulator is listening
|
||||||
for _ in range(100):
|
for _ in range(300):
|
||||||
try:
|
try:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
transport = get_transport("udp:127.0.0.1:21324")
|
transport = get_transport("udp:127.0.0.1:21324")
|
||||||
@ -110,7 +110,7 @@ class EmulatorWrapper:
|
|||||||
self._cleanup()
|
self._cleanup()
|
||||||
raise RuntimeError("Emulator proces died")
|
raise RuntimeError("Emulator proces died")
|
||||||
else:
|
else:
|
||||||
# could not connect after 100 attempts * 0.1s = 10s of waiting
|
# could not connect after 300 attempts * 0.1s = 30s of waiting
|
||||||
self._cleanup()
|
self._cleanup()
|
||||||
raise RuntimeError("Can't connect to emulator")
|
raise RuntimeError("Can't connect to emulator")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user