MCPcopy Index your code
hub / github.com/nodejs/node / postCreateConnection

Function postCreateConnection

test/parallel/test-https-agent-abort-controller.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Calls 4

abortMethod · 0.95
listenerCountFunction · 0.85
onceFunction · 0.70
createConnectionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…