adding delayed response to message body http mock

This commit is contained in:
Vallie Joseph committed 2024-01-09 16:44:12 +00:00
1 parent 0f6f9de20a
commit 635e2a657a
2 files changed
+30 -89

No files matched your search

+2 -2
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> {