From 71c7585a42f3909f9587befe119770a7bb051ba2 Mon Sep 17 00:00:00 2001 From: Loic Date: Tue, 23 Oct 2018 15:32:23 +0200 Subject: [PATCH 1/2] test: fix strictEqual() argument order --- test/parallel/test-https-connect-address-family.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-https-connect-address-family.js b/test/parallel/test-https-connect-address-family.js index 8b3584b3396551..1397f493cb4018 100644 --- a/test/parallel/test-https-connect-address-family.js +++ b/test/parallel/test-https-connect-address-family.js @@ -37,7 +37,7 @@ const https = require('https'); }; // Will fail with ECONNREFUSED if the address family is not honored. https.get(options, common.mustCall(function() { - assert.strictEqual('::1', this.socket.remoteAddress); + assert.strictEqual(this.socket.remoteAddress, '::1'); this.destroy(); })); })); From 9048c00b0c79d60ba8547c838fd9cbdf5e766eb4 Mon Sep 17 00:00:00 2001 From: Loic Date: Tue, 23 Oct 2018 15:55:54 +0200 Subject: [PATCH 2/2] test: replaced hardcoded value by variable --- test/parallel/test-https-connect-address-family.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-https-connect-address-family.js b/test/parallel/test-https-connect-address-family.js index 1397f493cb4018..65cd59313f109b 100644 --- a/test/parallel/test-https-connect-address-family.js +++ b/test/parallel/test-https-connect-address-family.js @@ -37,7 +37,7 @@ const https = require('https'); }; // Will fail with ECONNREFUSED if the address family is not honored. https.get(options, common.mustCall(function() { - assert.strictEqual(this.socket.remoteAddress, '::1'); + assert.strictEqual(this.socket.remoteAddress, hostAddrIPv6); this.destroy(); })); }));