Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e5a2fa2

Browse filesBrowse files
widatamaMylesBorins
authored andcommitted
test: fix http local address test assertion
Reverse the argument for assertion. The first argument should be the actual value and the second value should be the expected value. When there is an AssertionError, the expected and actual value will be labeled correctly. PR-URL: #23451 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent 8a9b2b6 commit e5a2fa2
Copy full SHA for e5a2fa2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-http-localaddress.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-localaddress.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const assert = require('assert');
2929

3030
const server = http.createServer(function(req, res) {
3131
console.log(`Connect from: ${req.connection.remoteAddress}`);
32-
assert.strictEqual('127.0.0.2', req.connection.remoteAddress);
32+
assert.strictEqual(req.connection.remoteAddress, '127.0.0.2');
3333

3434
req.on('end', function() {
3535
res.writeHead(200, { 'Content-Type': 'text/plain' });

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.