diff --git a/packages/artifact/__tests__/download.test.ts b/packages/artifact/__tests__/download.test.ts index b940fdec..ec07a1fe 100644 --- a/packages/artifact/__tests__/download.test.ts +++ b/packages/artifact/__tests__/download.test.ts @@ -196,7 +196,6 @@ describe('Download Tests', () => { const targetPath = path.join(root, 'FileD.txt') setupDownloadItemResponse(true, 200, true, fileContents, true) - setupThrowWhenReadingStream() const downloadHttpClient = new DownloadHttpClient() const items: DownloadItem[] = [] @@ -292,18 +291,6 @@ describe('Download Tests', () => { }) } - function setupThrowWhenReadingStream(): void { - jest - .spyOn(DownloadHttpClient.prototype, 'pipeResponseToFile') - .mockImplementationOnce(async () => { - return new Promise(() => { - throw new Error( - 'simulate GZip reading truncated buffer and throw Z_BUF_ERROR' - ) - }) - }) - } - /** * Setups up HTTP GET response for downloading items * @param isGzip is the downloaded item gzip encoded