()
| 37 | testCancelableWait1().then(common.mustCall()); |
| 38 | |
| 39 | async function testCancelableWait2() { |
| 40 | const wait = scheduler.wait(10000, { signal: AbortSignal.abort() }); |
| 41 | await assert.rejects(wait, { |
| 42 | code: 'ABORT_ERR', |
| 43 | message: 'The operation was aborted', |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | testCancelableWait2().then(common.mustCall()); |
| 48 |
no test coverage detected