mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
test: fixed close flag
This commit is contained in:
@@ -13,13 +13,13 @@ describe('Socket', function () {
|
||||
});
|
||||
|
||||
describe('socketClosing', function(){
|
||||
it('should not emit close on incorrect connection', function (done) {
|
||||
it('should emit close on incorrect connection', function(done){
|
||||
var socket = new eio.Socket('ws://0.0.0.0:8080');
|
||||
var closed = false;
|
||||
|
||||
socket.once('error', function(){
|
||||
setTimeout(function(){
|
||||
expect(closed).to.be(false);
|
||||
expect(closed).to.be(true);
|
||||
done();
|
||||
}, 20);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user