Fix cache lookup scenario

This commit is contained in:
Bassem Dghaidi authored and GitHub committed 2024-11-25 05:47:51 -08:00
1 parent b39d23cb38
commit 2360eb3d26
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -357,7 +357,7 @@ test('restore with cache found for restore key', async () => {
) )
expect(getCacheDownloadURLMock).toHaveBeenCalledWith({ expect(getCacheDownloadURLMock).toHaveBeenCalledWith({
key, key,
restoreKeys: restoreKeys, restoreKeys,
version: cacheVersion version: cacheVersion
}) })
expect(createTempDirectoryMock).toHaveBeenCalledTimes(1) expect(createTempDirectoryMock).toHaveBeenCalledTimes(1)
+1 -1
View File
@@ -261,7 +261,7 @@ async function restoreCacheV2(
if (options?.lookupOnly) { if (options?.lookupOnly) {
core.info('Lookup only - skipping download') core.info('Lookup only - skipping download')
return request.key return response.matchedKey
} }
archivePath = path.join( archivePath = path.join(