Bug 989048 - Use TimeoutException instead of Exception for emulator startup timeouts, r=mdas

This commit is contained in:
Jonathan Griffin 2014-04-01 10:02:09 -07:00
parent e1c367c356
commit 28124e2548

View File

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