Skip to content

Commit

Permalink
[FIX] increase js test timeout to 60
Browse files Browse the repository at this point in the history
when runbot is overloaded, test speed can be slow, 2s per HTTP request

bzr revid: al@openerp.com-20140403134109-nzg71xmybw1p5bsi
  • Loading branch information
antonylesuisse committed Apr 3, 2014
1 parent 438025d commit 7c29e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openerp/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def phantom_run(self, cmd, timeout):
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,
Expand All @@ -269,7 +269,7 @@ def phantom_jsfile(self, jsfile, timeout=30, **kw):
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
Expand Down

0 comments on commit 7c29e38

Please sign in to comment.