test: consolidate assertions in ipv6only test

PR-URL: https://github.com/nodejs/node/pull/26149
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott 2019-02-16 05:01:35 -08:00
parent 921f448d0d
commit c37b39282b

View File

@ -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();
}));