Skip to content
Closed
Prev Previous commit
Next Next commit
Ensure server sends connect message
  • Loading branch information
dylanlingelbach committed Dec 19, 2014
commit cc7ce79251a432f440850d176a756b9bba8673b5
10 changes: 9 additions & 1 deletion test/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,15 @@ describe('socket.io', function(){
});
dynamic.on('error', function(err) {
expect(err).to.be(null);
done();
var dsio = io.of('/dynamic');

dsio.on('connect', function(socket) {

expect(socket).to.be.a(Socket);
expect(socket.nsp.name).to.be(namespace);

done();
});
});
dynamic.on('connect', done);
});
Expand Down