Skip to content

Commit dba462e

Browse files
committed
fix tests on 0.11
1 parent 19c4422 commit dba462e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/socket.io.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function client(srv, nsp, opts){
1515
}
1616
var addr = srv.address();
1717
if (!addr) addr = srv.listen().address();
18-
var url = 'ws://' + addr.address + ':' + addr.port + (nsp || '');
18+
var url = 'ws://localhost:' + addr.port + (nsp || '');
1919
return ioc(url, opts);
2020
}
2121

@@ -127,7 +127,7 @@ describe('socket.io', function(){
127127
expect(s.handshake.time.split(' ').length > 0); // Is "multipart" string representation
128128

129129
// Address, xdomain, secure, issued and url set
130-
expect(s.handshake.address).to.be('127.0.0.1');
130+
expect(s.handshake.address).to.contain('127.0.0.1');
131131
expect(s.handshake.xdomain).to.be.a('boolean');
132132
expect(s.handshake.secure).to.be.a('boolean');
133133
expect(s.handshake.issued).to.be.a('number');

0 commit comments

Comments
 (0)