Skip to content

Commit 58faef2

Browse files
author
Jeroen Plug
committed
fix(MongoBinaryDownload): Resolve in extractTarGz
1 parent 06bb377 commit 58faef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ export default class MongoBinaryDownload {
235235
});
236236

237237
return new Promise((resolve, reject) => {
238+
extract.on('finish', () => resolve());
238239
fs.createReadStream(mongoDBArchive)
239240
.pipe(createUnzip())
240241
.pipe(extract)
241-
.on('end', () => resolve())
242242
.on('error', (e) => reject(e));
243243
});
244244
}

0 commit comments

Comments
 (0)