MCPcopy Index your code
hub / github.com/nodejs/node / test2

Function test2

test/parallel/test-http-agent.js:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69const test1 = makeRequests(N, M);
70
71const test2 = () => {
72 // Should not explode if can not create sockets.
73 // Ref: https://github.com/nodejs/node/issues/13045
74 // Ref: https://github.com/nodejs/node/issues/13831
75 http.Agent.prototype.createConnection = function createConnection(_, cb) {
76 process.nextTick(cb, new Error('nothing'));
77 };
78 return makeRequests(N, M, true);
79};
80
81test1
82 .then(test2)

Callers

nothing calls this directly

Calls 1

makeRequestsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…