Skip to content

Commit 43b746a

Browse files
committed
fix(MongoBinaryDownload): getPath: reduce some calls
1 parent 543cfbc commit 43b746a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export class MongoBinaryDownload {
6363
* @return Absoulte Path with FileName
6464
*/
6565
protected async getPath(): Promise<string> {
66-
const opts = await DryMongoBinary.generateOptions({ version: this.version });
66+
const opts = await DryMongoBinary.generateOptions({
67+
version: this.version,
68+
arch: this.arch,
69+
downloadDir: this.downloadDir,
70+
});
6771

6872
return DryMongoBinary.combineBinaryName(
6973
{ version: this.version },

0 commit comments

Comments
 (0)