From a49f416c85eb2aa2010fe0a0ee508b697898af34 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Thu, 1 Sep 2011 16:43:27 -0300 Subject: [PATCH] Fix timeout on Funcional test Just a silly conditional mistake. --- product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py index e14883c8fe..1d036055a7 100755 --- a/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py @@ -276,7 +276,7 @@ class FunctionalTestRunner: self.browser.run(self._getTestURL() , xvfb.display) while self.getStatus() is None: 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) finally: -- 2.30.9