tests: Increase testprocess.start timeout on CI.

Under some circumstances, starting qutebrowser needs more than 30 seconds
there.
This commit is contained in:
Florian Bruhin 2016-01-20 08:49:25 +01:00
parent a249d8d426
commit 037be96718

View File

@ -216,7 +216,8 @@ class Process(QObject):
def start(self, args=None, *, env=None):
"""Start the process and wait until it started."""
self._start(args, env=env)
for _ in range(30):
timeout = 60 if 'CI' in os.environ else 20
for _ in range(timeout):
with self._wait_signal(self.ready, timeout=1000,
raising=False) as blocker:
pass