adding delayed response to message body http mock

This commit is contained in:
Vallie Joseph
2024-01-09 16:44:12 +00:00
parent 9d70b8a9fb
commit 67d2d582dc
2 changed files with 30 additions and 89 deletions

View File

@@ -42,7 +42,7 @@ async function streamExtract(url: string, directory: string): Promise<void> {
let retryCount = 0
while (retryCount < 5) {
try {
await streamExtractInternal(url, directory)
await streamExtractExternal(url, directory)
core.info(`Artifact downloaded successfully after ${retryCount} retries.`)
return
} catch (error) {
@@ -58,7 +58,7 @@ async function streamExtract(url: string, directory: string): Promise<void> {
throw new Error(`Artifact download failed after ${retryCount} retries.`)
}
async function streamExtractInternal(
export async function streamExtractExternal(
url: string,
directory: string
): Promise<void> {