Skip to content

Commit 2b69d13

Browse files
committed
test: use invalid host according to RFC2606
Refs: nodejs#14781 Refs: https://tools.ietf.org/html/rfc2606#section-2
1 parent c879c9a commit 2b69d13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-client-req-error-dont-double-fire.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const assert = require('assert');
33
const http = require('http');
44
const common = require('../common');
55

6-
// not exists host
7-
const host = '*'.repeat(256);
6+
// Invalid hostname as per https://tools.ietf.org/html/rfc2606#section-2
7+
const host = 'this.hostname.is.invalid';
88
const req = http.get({ host });
99
const err = new Error('mock unexpected code error');
1010
req.on('error', common.mustCall(() => {

0 commit comments

Comments
 (0)