Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
test: log an error when websocket server is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMinar committed Apr 30, 2015
1 parent e544bae commit 3926e7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/patch/WebSocket.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ describe('WebSocket', function () {
beforeEach(function (done) {
socket = new WebSocket(TEST_SERVER_URL);
socket.addEventListener('open', done);
socket.addEventListener('error', function() {
fail("Can't establish socket to " + TEST_SERVER_URL +
"! do you have test/ws-server.js running?");
done();
});
});

afterEach(function (done) {
Expand Down

0 comments on commit 3926e7d

Please sign in to comment.