Attempt to fix the test

This commit is contained in:
Aiqiao Yan
2020-05-12 14:47:31 -04:00
parent 1413cd0e32
commit b3c8e19a7a
5 changed files with 33 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ import * as utils from './cacheUtils'
import {CompressionMethod, SocketTimeout} from './constants'
import {
ArtifactCacheEntry,
CacheOptions,
InternalCacheOptions,
CommitCacheRequest,
ReserveCacheRequest,
ReserveCacheResponse
@@ -180,7 +180,7 @@ export async function retryHttpClientResponse<T>(
export async function getCacheEntry(
keys: string[],
paths: string[],
options?: CacheOptions
options?: InternalCacheOptions
): Promise<ArtifactCacheEntry | null> {
const httpClient = createHttpClient()
const version = getCacheVersion(paths, options?.compressionMethod)
@@ -258,7 +258,7 @@ export async function downloadCache(
export async function reserveCache(
key: string,
paths: string[],
options?: CacheOptions
options?: InternalCacheOptions
): Promise<number> {
const httpClient = createHttpClient()
const version = getCacheVersion(paths, options?.compressionMethod)

View File

@@ -20,6 +20,6 @@ export interface ReserveCacheResponse {
cacheId: number
}
export interface CacheOptions {
export interface InternalCacheOptions {
compressionMethod?: CompressionMethod
}