(child, number)
| 7 | const { NodeInstance } = require('../common/inspector-helper.js'); |
| 8 | |
| 9 | async 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 | |
| 19 | async function runTest() { |
| 20 | const child = new NodeInstance(undefined, ''); |