()
| 50 | |
| 51 | |
| 52 | async function agentAsParam() { |
| 53 | const ac = new AbortController(); |
| 54 | const { signal } = ac; |
| 55 | const request = https.get({ |
| 56 | port: server.address().port, |
| 57 | path: '/hello', |
| 58 | agent: agent, |
| 59 | signal, |
| 60 | }); |
| 61 | assert.strictEqual(listenerCount(signal, 'abort'), 1); |
| 62 | ac.abort(); |
| 63 | const [err] = await once(request, 'error'); |
| 64 | assert.strictEqual(err.name, 'AbortError'); |
| 65 | } |
| 66 | |
| 67 | async function agentAsParamPreAbort() { |
| 68 | const ac = new AbortController(); |
no test coverage detected
searching dependent graphs…