feat: optional path validation during cache restore

This commit is contained in:
Jason Ginchereau
2026-06-17 14:39:14 -10:00
parent 0786132e6a
commit 998c5ad7fd
15 changed files with 2948 additions and 16 deletions
+5 -2
View File
@@ -11,6 +11,7 @@ const downloadConcurrency = 8
const timeoutInMs = 30000
const segmentTimeoutInMs = 600000
const lookupOnly = false
const pathValidation = 'off'
test('getDownloadOptions sets defaults', async () => {
const actualOptions = getDownloadOptions()
@@ -21,7 +22,8 @@ test('getDownloadOptions sets defaults', async () => {
downloadConcurrency,
timeoutInMs,
segmentTimeoutInMs,
lookupOnly
lookupOnly,
pathValidation
})
})
@@ -32,7 +34,8 @@ test('getDownloadOptions overrides all settings', async () => {
downloadConcurrency: 14,
timeoutInMs: 20000,
segmentTimeoutInMs: 3600000,
lookupOnly: true
lookupOnly: true,
pathValidation: 'error'
}
const actualOptions = getDownloadOptions(expectedOptions)