diff --git a/test/parallel/test-net-remote-address-port.js b/test/parallel/test-net-remote-address-port.js index fe090a3aa7a580..799841584def56 100644 --- a/test/parallel/test-net-remote-address-port.js +++ b/test/parallel/test-net-remote-address-port.js @@ -34,11 +34,13 @@ const remoteFamilyCandidates = ['IPv4']; if (common.hasIPv6) remoteFamilyCandidates.push('IPv6'); const server = net.createServer(common.mustCall(function(socket) { - // Test to see real value in CI log - assert.match(socket.remoteAddress, - /^127\.0\.0\.1$|^::1$|^::ffff:127\.0\.0\.1$/); - // REM: assert.ok(remoteAddrCandidates.includes(socket.remoteAddress)); - assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily)); + // REM: assert.match(socket.remoteAddress, + // REM: /^127\.0\.0\.1$|^::1$|^::ffff:127\.0\.0\.1$/); + assert.ok(remoteAddrCandidates.includes(socket.remoteAddress), + `Illformed remoteAddress: ${socket.remoteAddress}`); + assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily), + `Illformed remoteFamily: ${socket.remoteFamily}`); + // REM: assert.ok(remoteFamilyCandidates.includes(socket.remoteFamily)); assert.ok(socket.remotePort); assert.notStrictEqual(socket.remotePort, this.address().port); socket.on('end', function() {