mirror of https://github.com/actions/toolkit
revert
parent
e3b0601228
commit
b552972717
|
@ -670,12 +670,7 @@ describe('oidc-client-tests', () => {
|
|||
|
||||
it('HTTP get request to get token endpoint', async () => {
|
||||
const http = new HttpClient('actions/oidc-client')
|
||||
try {
|
||||
const res = await http.get(getTokenEndPoint())
|
||||
expect(res.message.statusCode).toBe(200)
|
||||
}
|
||||
finally {
|
||||
http.dispose()
|
||||
}
|
||||
const res = await http.get(getTokenEndPoint())
|
||||
expect(res.message.statusCode).toBe(200)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -59,7 +59,6 @@ describe('auth', () => {
|
|||
const http: httpm.HttpClient = new httpm.HttpClient('http-client-tests', [
|
||||
ph
|
||||
])
|
||||
try {
|
||||
const res: httpm.HttpClientResponse = await http.get(
|
||||
'http://postman-echo.com/get'
|
||||
)
|
||||
|
@ -69,9 +68,5 @@ describe('auth', () => {
|
|||
const auth: string = obj.headers.authorization
|
||||
expect(auth).toBe(`Bearer ${token}`)
|
||||
expect(obj.url).toBe('http://postman-echo.com/get')
|
||||
}
|
||||
finally {
|
||||
http.dispose()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue