Skip to content

Commit

Permalink
test: use invalid host according to RFC2606
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Aug 16, 2017
1 parent c879c9a commit 2b69d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-client-req-error-dont-double-fire.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const assert = require('assert');
const http = require('http');
const common = require('../common');

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

0 comments on commit 2b69d13

Please sign in to comment.