fix test
This commit is contained in:
parent
c8b2ce08c1
commit
6fb53553e7
|
|
@ -117,7 +117,12 @@ async function main(options: DownloadParams) {
|
||||||
const extraction = pipeline(
|
const extraction = pipeline(
|
||||||
decompress,
|
decompress,
|
||||||
tar.extract(options.browserDirectory),
|
tar.extract(options.browserDirectory),
|
||||||
);
|
).catch(e => {
|
||||||
|
if (e.code === 'ERR_STREAM_PREMATURE_CLOSE') // caused by an upstream error in `downloadFile()`, let's no throw twice
|
||||||
|
return;
|
||||||
|
|
||||||
|
throw e;
|
||||||
|
});
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
extraction,
|
extraction,
|
||||||
downloadFile(options, decompress)
|
downloadFile(options, decompress)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue