Skip to content

Commit

Permalink
net: move test to right location
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed May 29, 2023
1 parent e5e6ce6 commit 5150216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const common = require('../common');
const { addresses } = require('../common/internet');

if (!common.hasCrypto)
common.skip('missing crypto');
Expand All @@ -9,7 +10,7 @@ const assert = require('assert');
const { request } = require('https');

request(
'https://nodejs.org/en',
`https://${addresses.INET_HOST}/en`,
// Purposely set this to false because we want all connection but the last to fail
{ autoSelectFamily: true, autoSelectFamilyAttemptTimeout: 10 },
(res) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');

const net = require('net');
Expand Down Expand Up @@ -52,7 +52,7 @@ function makeHttp10Request(cb) {

setTimeout(function() {
cb(socket);
}, 10);
}, common.platformTimeout(50));
});
}

Expand Down

0 comments on commit 5150216

Please sign in to comment.