()
| 30 | }; |
| 31 | |
| 32 | async function postCreateConnection() { |
| 33 | const ac = new AbortController(); |
| 34 | const { signal } = ac; |
| 35 | const connection = agent.createConnection({ ...options, signal }); |
| 36 | assert.strictEqual(listenerCount(signal, 'abort'), 1); |
| 37 | ac.abort(); |
| 38 | const [err] = await once(connection, 'error'); |
| 39 | assert.strictEqual(err.name, 'AbortError'); |
| 40 | } |
| 41 | |
| 42 | async function preCreateConnection() { |
| 43 | const ac = new AbortController(); |
no test coverage detected
searching dependent graphs…