mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-06 18:03:19 +08:00
some test updates
This commit is contained in:
@@ -10,7 +10,10 @@ import {
|
||||
import {getUserAgentString} from '../shared/user-agent'
|
||||
import {getGitHubWorkspaceDir} from '../shared/config'
|
||||
import {internalArtifactTwirpClient} from '../shared/artifact-twirp-client'
|
||||
import {GetSignedArtifactURLRequest, ListArtifactsRequest} from 'src/generated'
|
||||
import {
|
||||
GetSignedArtifactURLRequest,
|
||||
ListArtifactsRequest
|
||||
} from '../../generated'
|
||||
import {getBackendIdsFromToken} from '../shared/util'
|
||||
|
||||
const scrubQueryParameters = (url: string): string => {
|
||||
|
||||
@@ -160,13 +160,13 @@ class ArtifactHttpClient implements Rpc {
|
||||
|
||||
export function internalArtifactTwirpClient(options?: {
|
||||
maxAttempts?: number
|
||||
baseRetryIntervalMilliseconds?: number
|
||||
retryIntervalMs?: number
|
||||
retryMultiplier?: number
|
||||
}): ArtifactServiceClientJSON {
|
||||
const client = new ArtifactHttpClient(
|
||||
getUserAgentString(),
|
||||
options?.maxAttempts,
|
||||
options?.baseRetryIntervalMilliseconds,
|
||||
options?.retryIntervalMs,
|
||||
options?.retryMultiplier
|
||||
)
|
||||
return new ArtifactServiceClientJSON(client)
|
||||
|
||||
Reference in New Issue
Block a user