From aabd6980ac0543fe82f11779f2365b87f41fe5b0 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Thu, 24 Oct 2013 12:15:49 +0700 Subject: [PATCH] Fix a bug in `websocket-test.js` referencing done() not declared in test() function signature, was causing failure of subsequent test suite, due to mocha's enveloped exception handling style --- test/mocha.opts | 6 +++++- test/runall.sh | 3 +-- test/websocket-test.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/mocha.opts b/test/mocha.opts index fdc70aba73..77a7a3544f 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1 +1,5 @@ ---reporter spec --compilers coffee:coffee-script --ui tdd --timeout 10000 --slow 600 \ No newline at end of file +--reporter spec +--compilers coffee:coffee-script +--ui tdd +--timeout 10000 +--slow 600 \ No newline at end of file diff --git a/test/runall.sh b/test/runall.sh index a83f80ff61..2e31c8d2f4 100755 --- a/test/runall.sh +++ b/test/runall.sh @@ -1,5 +1,4 @@ #!/bin/bash # flags set in mocha.opts -mocha test/*-test.{js,coffee} - +mocha test/*-test.{js,coffee} \ No newline at end of file diff --git a/test/websocket-test.js b/test/websocket-test.js index d0070700f9..f24d34715d 100644 --- a/test/websocket-test.js +++ b/test/websocket-test.js @@ -28,7 +28,7 @@ suite('WebSocket connection', function() { } }); - test('WebSocket connect and disconnect', function() { + test('WebSocket connect and disconnect', function(done) { var alpha = Remote.from_config("alpha"); alpha.on('connected', function () {