(message)
| 24 | } |
| 25 | |
| 26 | function verifyAsyncHookEnabled(message) { |
| 27 | assert.strictEqual(async_hook_fields[kTotals], 4, |
| 28 | `${async_hook_fields[kTotals]} !== 4: ${message}`); |
| 29 | const promiseHooks = getPromiseHooks(); |
| 30 | assert.deepStrictEqual( // Inspector async hooks should not enable promise hooks |
| 31 | promiseHooks, emptyPromiseHooks, |
| 32 | `${message}: promise hooks ${inspect(promiseHooks)}` |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | // By default inspector async hooks should not have been installed. |
| 37 | verifyAsyncHookDisabled('inspector async hook should be disabled at startup'); |
no test coverage detected