Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
net: move test to right location
  • Loading branch information
ShogunPanda committed May 29, 2023
commit 51502162193a0a2d1b1ac6fd0c4b0a0f54148716
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