From b085d2e697c7780120ee9dc50fce1e97bb44808a Mon Sep 17 00:00:00 2001 From: Daniel Kennedy Date: Fri, 13 Feb 2026 12:05:37 -0500 Subject: [PATCH] fix(tests): close sockets to remove a Jest warning about resources outliving their tests (#2279) --- __tests__/core.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__tests__/core.test.ts b/__tests__/core.test.ts index df6d390..c3dfe5a 100644 --- a/__tests__/core.test.ts +++ b/__tests__/core.test.ts @@ -677,5 +677,8 @@ describe('oidc-client-tests', () => { const http = new HttpClient('actions/oidc-client') const res = await http.get(getTokenEndPoint()) expect(res.message.statusCode).toBe(200) + // Consume the response to close the socket + await res.readBody() + res.message.destroy() }) })