From 7c29e3847cd596d8befcc8d1169678beb8c41177 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Thu, 3 Apr 2014 15:41:09 +0200 Subject: [PATCH] [FIX] increase js test timeout to 60 when runbot is overloaded, test speed can be slow, 2s per HTTP request bzr revid: al@openerp.com-20140403134109-nzg71xmybw1p5bsi --- openerp/tests/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/tests/common.py b/openerp/tests/common.py index a53a8d82240..c1f7cf88ed1 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -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