We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c879c9a commit 2b69d13Copy full SHA for 2b69d13
test/parallel/test-http-client-req-error-dont-double-fire.js
@@ -3,8 +3,8 @@ const assert = require('assert');
3
const http = require('http');
4
const common = require('../common');
5
6
-// not exists host
7
-const host = '*'.repeat(256);
+// Invalid hostname as per https://tools.ietf.org/html/rfc2606#section-2
+const host = 'this.hostname.is.invalid';
8
const req = http.get({ host });
9
const err = new Error('mock unexpected code error');
10
req.on('error', common.mustCall(() => {
0 commit comments