From 7da63a10ac5e3f4c63ed9b2fa6dfdbfa32df4063 Mon Sep 17 00:00:00 2001 From: Julien Gilli Date: Fri, 1 Aug 2014 11:06:54 -0700 Subject: [PATCH] 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 --- test/simple/test-net-remote-address-port.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simple/test-net-remote-address-port.js b/test/simple/test-net-remote-address-port.js index c339039..1f565f4 100644 --- a/test/simple/test-net-remote-address-port.js +++ b/test/simple/test-net-remote-address-port.js @@ -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(); }); -- 2.7.4