test: fix test-net-remote-address-port
authorJulien Gilli <julien.gilli@joyent.com>
Fri, 1 Aug 2014 18:06:54 +0000 (11:06 -0700)
committerTrevor Norris <trev.norris@gmail.com>
Mon, 4 Aug 2014 20:48:19 +0000 (13:48 -0700)
Do not use first socket in second socket's connect handler. Probably a
copy/paste mistake.

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
test/simple/test-net-remote-address-port.js

index c339039..1f565f4 100644 (file)
@@ -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();
   });