[FIX] Broke commit

bzr revid: ddm@openerp.com-20131227123502-ysoogk0nwit4c7xv
This commit is contained in:
ddm
2013-12-27 13:35:02 +01:00
parent d3ec7c10dc
commit 7cf5089cce
@@ -1,5 +1,5 @@
function waitFor(ready, callback, timeout) {
var timeoutMillis = timeout ? Math.round(timeout*1000) : 10000;
var timeoutMillis = timeout ? Math.round(timeout*1000) : 30000;
var start = new Date().getTime();
var condition = ready();
var interval = setInterval(function() {
@@ -7,7 +7,7 @@ function waitFor(ready, callback, timeout) {
condition = ready();
} else {
if(!condition) {
var message = "Timeout after "+timeoutMillis+" ms\nWaiting for\n"+ready;
var message = "Timeout after "+timeoutMillis+" ms";
console.log('{ "event": "error", "message": "'+message+'" }');
phantom.exit(1);
} else {