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

Function testHttp

test/parallel/test-inspector-stress-http.js:9–17  ·  view source on GitHub ↗
(child, number)

Source from the content-addressed store, hash-verified

7const { NodeInstance } = require('../common/inspector-helper.js');
8
9async function testHttp(child, number) {
10 try {
11 await child.httpGet(null, '/json/list');
12 return true;
13 } catch (e) {
14 console.error(`Attempt ${number} failed`, e);
15 return false;
16 }
17}
18
19async function runTest() {
20 const child = new NodeInstance(undefined, '');

Callers 1

runTestFunction · 0.70

Calls 2

httpGetMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…