1
0
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:
Pavol Rusnak 2019-09-18 17:07:57 +02:00
parent 101d2e5df6
commit 8d2b32332b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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")