()
| 17 | } |
| 18 | |
| 19 | async function runTest() { |
| 20 | const child = new NodeInstance(undefined, ''); |
| 21 | |
| 22 | const promises = []; |
| 23 | for (let i = 0; i < 100; i++) { |
| 24 | promises.push(testHttp(child, i)); |
| 25 | } |
| 26 | const result = await Promise.all(promises); |
| 27 | assert(!result.some((a) => !a), 'Some attempts failed'); |
| 28 | return child.kill(); |
| 29 | } |
| 30 | |
| 31 | runTest().then(common.mustCall()); |