mirror of
https://github.com/actions/toolkit.git
synced 2025-06-09 09:35:06 +09:00
Add a new debug message for downloads
This commit is contained in:
parent
4d31e1048a
commit
35ede8fcf0
1 changed files with 15 additions and 3 deletions
18
packages/cache/__tests__/restoreCacheV2.test.ts
vendored
18
packages/cache/__tests__/restoreCacheV2.test.ts
vendored
|
@ -174,7 +174,11 @@ test('restore with gzip compressed cache found', async () => {
|
|||
'downloadCacheFile'
|
||||
)
|
||||
downloadCacheFileMock.mockReturnValue(
|
||||
Promise.resolve({} as BlobDownloadResponseParsed)
|
||||
Promise.resolve({
|
||||
_response: {
|
||||
status: 200
|
||||
}
|
||||
} as BlobDownloadResponseParsed)
|
||||
)
|
||||
|
||||
const fileSize = 142
|
||||
|
@ -254,7 +258,11 @@ test('restore with zstd compressed cache found', async () => {
|
|||
'downloadCacheFile'
|
||||
)
|
||||
downloadCacheFileMock.mockReturnValue(
|
||||
Promise.resolve({} as BlobDownloadResponseParsed)
|
||||
Promise.resolve({
|
||||
_response: {
|
||||
status: 200
|
||||
}
|
||||
} as BlobDownloadResponseParsed)
|
||||
)
|
||||
|
||||
const fileSize = 62915000
|
||||
|
@ -335,7 +343,11 @@ test('restore with cache found for restore key', async () => {
|
|||
'downloadCacheFile'
|
||||
)
|
||||
downloadCacheFileMock.mockReturnValue(
|
||||
Promise.resolve({} as BlobDownloadResponseParsed)
|
||||
Promise.resolve({
|
||||
_response: {
|
||||
status: 200
|
||||
}
|
||||
} as BlobDownloadResponseParsed)
|
||||
)
|
||||
|
||||
const fileSize = 142
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue