Skip to content

Commit e71b98f

Browse files
Trottaddaleax
authored andcommitted
test: restore no-op function in test
Remove common.mustCall() in test that might connect to a server already running on the local host. PR-URL: #14065 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d288cf1 commit e71b98f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-http-hostname-typechecking.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const common = require('../common');
2+
require('../common');
33

44
const assert = require('assert');
55
const http = require('http');
@@ -21,7 +21,7 @@ vals.forEach((v) => {
2121
// These values are OK and should not throw synchronously
2222
['', undefined, null].forEach((v) => {
2323
assert.doesNotThrow(() => {
24-
http.request({hostname: v}).on('error', common.mustCall()).end();
25-
http.request({host: v}).on('error', common.mustCall()).end();
24+
http.request({hostname: v}).on('error', () => {}).end();
25+
http.request({host: v}).on('error', () => {}).end();
2626
});
2727
});

0 commit comments

Comments
 (0)