From 0ea7d1e394835a96d73c48f784952e5c536d8229 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 26 Sep 2013 15:35:23 -0700 Subject: [PATCH] more informative message on server timeout --- IPython/html/tests/casperjs/util.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IPython/html/tests/casperjs/util.js b/IPython/html/tests/casperjs/util.js index 5f693c25b..d1481e2f7 100644 --- a/IPython/html/tests/casperjs/util.js +++ b/IPython/html/tests/casperjs/util.js @@ -51,6 +51,12 @@ casper.notebookTest = function(test) { }); }; +casper.options.waitTimeout=5000 +casper.on('waitFor.timeout', function onWaitForTimeout(timeout) { + this.echo("Timeout for " + casper.getNotebookServer()); + this.echo("Is the notebook server running?"); +}); + // Pass `console.log` calls from page JS to casper. casper.printLog = function () { this.on('remote.message', function(msg) {