Skip to content

Commit

Permalink
Merge pull request socketio#768 from rase-/fix/tests
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
rauchg committed Oct 19, 2014
2 parents b5d808e + 361aced commit 0b34836
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ Manager.prototype.cleanup = function(){
Manager.prototype.close =
Manager.prototype.disconnect = function(){
this.skipReconnect = true;
this.readyState = 'closed';
this.engine && this.engine.close();
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"dependencies": {
"debug": "0.7.4",
"engine.io-client": "1.4.0",
"engine.io-client": "Automattic/engine.io-client#6d908e",
"component-bind": "1.0.0",
"component-emitter": "1.1.2",
"object-component": "0.0.3",
Expand Down
2 changes: 1 addition & 1 deletion test/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('connection', function() {

setTimeout(function() {
manager.engine.close();
}, 500);
}, 1000);
});

it('should try to reconnect twice and fail when requested two attempts with immediate timeout and reconnect enabled', function(done) {
Expand Down

0 comments on commit 0b34836

Please sign in to comment.