[FIX] increase js test timeout to 60
authorAntony Lesuisse <al@openerp.com>
Thu, 3 Apr 2014 13:41:09 +0000 (15:41 +0200)
committerAntony Lesuisse <al@openerp.com>
Thu, 3 Apr 2014 13:41:09 +0000 (15:41 +0200)
when runbot is overloaded, test speed can be slow, 2s per HTTP request

bzr revid: al@openerp.com-20140403134109-nzg71xmybw1p5bsi

openerp/tests/common.py

index a53a8d8..c1f7cf8 100644 (file)
@@ -255,7 +255,7 @@ class HttpCase(TransactionCase):
                 phantom.terminate()
             _logger.info("phantom_run execution finished")
 
-    def phantom_jsfile(self, jsfile, timeout=30, **kw):
+    def phantom_jsfile(self, jsfile, timeout=60, **kw):
         options = {
             'timeout' : timeout,
             'port': PORT,
@@ -269,7 +269,7 @@ class HttpCase(TransactionCase):
         cmd = ['phantomjs', jsfile, phantomtest, json.dumps(options)]
         self.phantom_run(cmd, timeout)
 
-    def phantom_js(self, url_path, code, ready="window", login=None, timeout=30, **kw):
+    def phantom_js(self, url_path, code, ready="window", login=None, timeout=60, **kw):
         """ Test js code running in the browser
         - optionnally log as 'login'
         - load page given by url_path