mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +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")
|
||||
)
|
||||
# wait until emulator is listening
|
||||
for _ in range(100):
|
||||
for _ in range(300):
|
||||
try:
|
||||
time.sleep(0.1)
|
||||
transport = get_transport("udp:127.0.0.1:21324")
|
||||
@ -110,7 +110,7 @@ class EmulatorWrapper:
|
||||
self._cleanup()
|
||||
raise RuntimeError("Emulator proces died")
|
||||
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()
|
||||
raise RuntimeError("Can't connect to emulator")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user