Skip to content

Commit

Permalink
test: fix test-net-remote-address-port
Browse files Browse the repository at this point in the history
Do not use first socket in second socket's connect handler. Probably a
copy/paste mistake.

Reviewed-by: Trevor Norris <[email protected]>
  • Loading branch information
Julien Gilli authored and trevnorris committed Aug 4, 2014
1 parent 20229d6 commit 7da63a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/simple/test-net-remote-address-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ server.listen(common.PORT, 'localhost', function() {
});
client2.on('connect', function() {
assert.equal('127.0.0.1', client2.remoteAddress);
assert.equal('IPv4', client.remoteFamily);
assert.equal('IPv4', client2.remoteFamily);
assert.equal(common.PORT, client2.remotePort);
client2.end();
});
Expand Down

0 comments on commit 7da63a1

Please sign in to comment.