test: fix assert parameter order in test-https-localaddress.js
PR-URL: https://github.com/nodejs/node/pull/23599 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
f8b1e0e4b9
commit
697c3da308
@ -39,7 +39,7 @@ const options = {
|
|||||||
|
|
||||||
const server = https.createServer(options, function(req, res) {
|
const server = https.createServer(options, function(req, res) {
|
||||||
console.log(`Connect from: ${req.connection.remoteAddress}`);
|
console.log(`Connect from: ${req.connection.remoteAddress}`);
|
||||||
assert.strictEqual('127.0.0.2', req.connection.remoteAddress);
|
assert.strictEqual(req.connection.remoteAddress, '127.0.0.2');
|
||||||
|
|
||||||
req.on('end', function() {
|
req.on('end', function() {
|
||||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user