diff --git a/test/server/customUtil.ts b/test/server/customUtil.ts index ca10f327..789d7422 100644 --- a/test/server/customUtil.ts +++ b/test/server/customUtil.ts @@ -54,8 +54,8 @@ export async function serveSomething(setup: (app: express.Express) => void, port }); async function shutdown() { - await fromCallback(cb => server.close(cb)); for (const conn of connections) { conn.destroy(); } + await fromCallback(cb => server.close(cb)); } port = (server.address() as AddressInfo).port;