Commit a49f416c authored by Rafael Monnerat's avatar Rafael Monnerat

Fix timeout on Funcional test

Just a silly conditional mistake.
parent 7911debb
...@@ -276,7 +276,7 @@ class FunctionalTestRunner: ...@@ -276,7 +276,7 @@ class FunctionalTestRunner:
self.browser.run(self._getTestURL() , xvfb.display) self.browser.run(self._getTestURL() , xvfb.display)
while self.getStatus() is None: while self.getStatus() is None:
time.sleep(10) time.sleep(10)
if (start - time.time()) > float(self.timeout): if (time.time() - start) > float(self.timeout):
raise TimeoutError("Test took more them %s seconds" % self.timeout) raise TimeoutError("Test took more them %s seconds" % self.timeout)
finally: finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment