fix(tests): close sockets to remove a Jest warning about resources outliving their tests (#2279)
This commit is contained in:
1 parent
8246e3864b
commit
b085d2e697
1 file changed
+3
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user