()
| 25 | testWait().then(common.mustCall()); |
| 26 | |
| 27 | async function testCancelableWait1() { |
| 28 | const ac = new AbortController(); |
| 29 | const wait = scheduler.wait(1e6, { signal: ac.signal }); |
| 30 | ac.abort(); |
| 31 | await assert.rejects(wait, { |
| 32 | code: 'ABORT_ERR', |
| 33 | message: 'The operation was aborted', |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | testCancelableWait1().then(common.mustCall()); |
| 38 |
no test coverage detected