зеркало из https://github.com/mozilla/gecko-dev.git
Bug 989048 - Use TimeoutException instead of Exception for emulator startup timeouts, r=mdas
This commit is contained in:
Родитель
a1e1498312
Коммит
8d70fe30b8
|
@ -348,7 +348,7 @@ waitFor(
|
|||
while online - original_online == set([]):
|
||||
time.sleep(1)
|
||||
if datetime.datetime.now() - now > datetime.timedelta(seconds=60):
|
||||
raise Exception('timed out waiting for emulator to start')
|
||||
raise TimeoutException('timed out waiting for emulator to start')
|
||||
online, offline = self._get_adb_devices()
|
||||
self.port = int(list(online - original_online)[0])
|
||||
self._emulator_launched = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче