Skip to content

Commit 59ca9e9

Browse files
Trottrvagg
authored andcommitted
test: consolidate assertions in ipv6only test
PR-URL: #26149 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e108c32 commit 59ca9e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-cluster-net-listen-ipv6only-rr.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ if (cluster.isMaster) {
4040
if (!address) {
4141
address = workerAddress;
4242
} else {
43-
assert.strictEqual(address.addressType, workerAddress.addressType);
44-
assert.strictEqual(address.host, workerAddress.host);
45-
assert.strictEqual(address.port, workerAddress.port);
43+
assert.deepStrictEqual(workerAddress, address);
4644
}
4745
countdown.dec();
4846
}));

0 commit comments

Comments
 (0)