mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-05 14:13:15 +08:00
Refactor saveCacheV2 to use saveCache from cacheHttpClient
This commit is contained in:
6
packages/cache/__tests__/options.test.ts
vendored
6
packages/cache/__tests__/options.test.ts
vendored
@@ -47,14 +47,16 @@ test('getUploadOptions sets defaults', async () => {
|
||||
|
||||
expect(actualOptions).toEqual({
|
||||
uploadConcurrency,
|
||||
uploadChunkSize
|
||||
uploadChunkSize,
|
||||
useAzureSdk
|
||||
})
|
||||
})
|
||||
|
||||
test('getUploadOptions overrides all settings', async () => {
|
||||
const expectedOptions: UploadOptions = {
|
||||
uploadConcurrency: 2,
|
||||
uploadChunkSize: 16 * 1024 * 1024
|
||||
uploadChunkSize: 16 * 1024 * 1024,
|
||||
useAzureSdk: true
|
||||
}
|
||||
|
||||
const actualOptions = getUploadOptions(expectedOptions)
|
||||
|
||||
Reference in New Issue
Block a user