From 59ca9e9ccfb39bf11a4ed450a293d2406d9c0f86 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 16 Feb 2019 05:01:35 -0800 Subject: [PATCH] test: consolidate assertions in ipv6only test PR-URL: https://github.com/nodejs/node/pull/26149 Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-cluster-net-listen-ipv6only-rr.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/parallel/test-cluster-net-listen-ipv6only-rr.js b/test/parallel/test-cluster-net-listen-ipv6only-rr.js index de254a4fe9ecd9..e5944ccf602e54 100644 --- a/test/parallel/test-cluster-net-listen-ipv6only-rr.js +++ b/test/parallel/test-cluster-net-listen-ipv6only-rr.js @@ -40,9 +40,7 @@ if (cluster.isMaster) { if (!address) { address = workerAddress; } else { - assert.strictEqual(address.addressType, workerAddress.addressType); - assert.strictEqual(address.host, workerAddress.host); - assert.strictEqual(address.port, workerAddress.port); + assert.deepStrictEqual(workerAddress, address); } countdown.dec(); }));