mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-14 15:38:05 +08:00
Rename option to lookupOnly
This commit is contained in:
10
packages/cache/__tests__/options.test.ts
vendored
10
packages/cache/__tests__/options.test.ts
vendored
@@ -9,7 +9,7 @@ const useAzureSdk = true
|
||||
const downloadConcurrency = 8
|
||||
const timeoutInMs = 30000
|
||||
const segmentTimeoutInMs = 3600000
|
||||
const dryRun = false
|
||||
const lookupOnly = false
|
||||
const uploadConcurrency = 4
|
||||
const uploadChunkSize = 32 * 1024 * 1024
|
||||
|
||||
@@ -21,7 +21,7 @@ test('getDownloadOptions sets defaults', async () => {
|
||||
downloadConcurrency,
|
||||
timeoutInMs,
|
||||
segmentTimeoutInMs,
|
||||
dryRun
|
||||
lookupOnly
|
||||
})
|
||||
})
|
||||
|
||||
@@ -31,7 +31,7 @@ test('getDownloadOptions overrides all settings', async () => {
|
||||
downloadConcurrency: 14,
|
||||
timeoutInMs: 20000,
|
||||
segmentTimeoutInMs: 3600000,
|
||||
dryRun: true
|
||||
lookupOnly: true
|
||||
}
|
||||
|
||||
const actualOptions = getDownloadOptions(expectedOptions)
|
||||
@@ -65,7 +65,7 @@ test('getDownloadOptions overrides download timeout minutes', async () => {
|
||||
downloadConcurrency: 14,
|
||||
timeoutInMs: 20000,
|
||||
segmentTimeoutInMs: 3600000,
|
||||
dryRun: true
|
||||
lookupOnly: true
|
||||
}
|
||||
process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS = '10'
|
||||
const actualOptions = getDownloadOptions(expectedOptions)
|
||||
@@ -76,5 +76,5 @@ test('getDownloadOptions overrides download timeout minutes', async () => {
|
||||
)
|
||||
expect(actualOptions.timeoutInMs).toEqual(expectedOptions.timeoutInMs)
|
||||
expect(actualOptions.segmentTimeoutInMs).toEqual(600000)
|
||||
expect(actualOptions.dryRun).toEqual(expectedOptions.dryRun)
|
||||
expect(actualOptions.lookupOnly).toEqual(expectedOptions.lookupOnly)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user