[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
This commit is contained in:
Antony Lesuisse 2014-04-03 15:41:09 +02:00
parent 438025dac8
commit 7c29e3847c
1 changed files with 2 additions and 2 deletions

View 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