MCPcopy Create free account
hub / github.com/fastify/fastify / onClose

Function onClose

test/server.test.js:108–112  ·  view source on GitHub ↗
(instance, done)

Source from the content-addressed store, hash-verified

106 await t.test('should close server when aborted after', (t, end) => {
107 t.plan(2)
108 function onClose (instance, done) {
109 t.assert.strictEqual(instance, fastify)
110 done()
111 end()
112 }
113
114 const controller = new AbortController()
115

Callers

nothing calls this directly

Calls 2

endFunction · 0.85
doneFunction · 0.50

Tested by

no test coverage detected