()
| 65 | } |
| 66 | |
| 67 | async function agentAsParamPreAbort() { |
| 68 | const ac = new AbortController(); |
| 69 | const { signal } = ac; |
| 70 | ac.abort(); |
| 71 | const request = https.get({ |
| 72 | port: server.address().port, |
| 73 | path: '/hello', |
| 74 | agent: agent, |
| 75 | signal, |
| 76 | }); |
| 77 | assert.strictEqual(listenerCount(signal, 'abort'), 0); |
| 78 | const [err] = await once(request, 'error'); |
| 79 | assert.strictEqual(err.name, 'AbortError'); |
| 80 | } |
| 81 | |
| 82 | await postCreateConnection(); |
| 83 | await preCreateConnection(); |
no test coverage detected
searching dependent graphs…