mirror of
https://github.com/actions/toolkit
synced 2025-05-09 16:43:02 +00:00
Resolved comments
This commit is contained in:
parent
3abbc6c24c
commit
6cd8286138
5 changed files with 27 additions and 19 deletions
9
packages/cache/__tests__/saveCache.test.ts
vendored
9
packages/cache/__tests__/saveCache.test.ts
vendored
|
@ -63,17 +63,16 @@ test('save with large cache outputs should fail', async () => {
|
|||
const reserveCacheMock = jest
|
||||
.spyOn(cacheHttpClient, 'reserveCache')
|
||||
.mockImplementation(async () => {
|
||||
const response: ITypedResponseWithErrorMessage<ReserveCacheResponse> = {
|
||||
const response: ITypedResponse<ReserveCacheResponse> = {
|
||||
statusCode: 400,
|
||||
result: null,
|
||||
headers: {},
|
||||
typeKey: 'InvalidReserveCacheRequestException'
|
||||
headers: {}
|
||||
}
|
||||
return response
|
||||
})
|
||||
|
||||
await expect(saveCache([filePath], primaryKey)).rejects.toThrowError(
|
||||
'Cache size of ~11264 MB (11811160064 B) is over the data cap limit, not saving cache.'
|
||||
'Cache size of ~11264 MB (11811160064 B) is over the 10GB limit, not saving cache.'
|
||||
)
|
||||
|
||||
const archiveFolder = '/foo/bar'
|
||||
|
@ -94,7 +93,7 @@ test('save with reserve cache failure should fail', async () => {
|
|||
const reserveCacheMock = jest
|
||||
.spyOn(cacheHttpClient, 'reserveCache')
|
||||
.mockImplementation(async () => {
|
||||
const response: ITypedResponseWithErrorMessage<ReserveCacheResponse> = {
|
||||
const response: ITypedResponse<ReserveCacheResponse> = {
|
||||
statusCode: 500,
|
||||
result: null,
|
||||
headers: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue