From cc44cf352894c5a0dfe6f5b7b10f44b117f4b430 Mon Sep 17 00:00:00 2001 From: Blair Currey <12960453+BlairCurrey@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:00:30 -0400 Subject: [PATCH] ci: fix node 16 tests --- test/createKoaMiddleware.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/createKoaMiddleware.test.ts b/test/createKoaMiddleware.test.ts index 727c6a5..82bf99e 100644 --- a/test/createKoaMiddleware.test.ts +++ b/test/createKoaMiddleware.test.ts @@ -168,12 +168,7 @@ describe('Integration', () => { let server: Server; beforeEach(async () => (server = app.listen(3098))); - afterEach(async () => { - if (server?.listening) { - await server.closeAllConnections(); - await server.close(); - } - }); + afterEach(async () => await server.close()); describe('Can call tRPC server endpoints succesfully', () => { it('GET /users', async () => {