mirror of https://github.com/nodejs/node.git
test: fix test-net-remote-address-port
Do not use first socket in second socket's connect handler. Probably a copy/paste mistake. Reviewed-by: Trevor Norris <trev.norris@gmail.com>archived-io.js-v0.10
parent
20229d6896
commit
7da63a10ac
|
@ -49,7 +49,7 @@ server.listen(common.PORT, 'localhost', function() {
|
||||||
});
|
});
|
||||||
client2.on('connect', function() {
|
client2.on('connect', function() {
|
||||||
assert.equal('127.0.0.1', client2.remoteAddress);
|
assert.equal('127.0.0.1', client2.remoteAddress);
|
||||||
assert.equal('IPv4', client.remoteFamily);
|
assert.equal('IPv4', client2.remoteFamily);
|
||||||
assert.equal(common.PORT, client2.remotePort);
|
assert.equal(common.PORT, client2.remotePort);
|
||||||
client2.end();
|
client2.end();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue