Skip to content

Commit 8d69118

Browse files
committed
chore(testing): prevent excessive MongoDB binary downloads in testing
This is making use of the new locking mechanism with the runner and downloader in mongodb-js/devtools-shared#580 as well as having a single place for all binaries.
1 parent 043ef26 commit 8d69118

File tree

3 files changed

+102
-22
lines changed

3 files changed

+102
-22
lines changed

package-lock.json

Lines changed: 99 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"husky": "^9.0.11",
118118
"mocha": "^10.2.0",
119119
"mongodb": "^6.19.0",
120-
"mongodb-runner": "^5.7.1",
120+
"mongodb-runner": "^6.0.0",
121121
"node-gyp": "^9.0.0 || ^10.2.0",
122122
"nyc": "^15.1.0",
123123
"pkg-up": "^3.1.0",

testing/integration-testing-hooks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import which from "which";
88
import { ConnectionString } from "mongodb-connection-string-url";
99
import { MongoCluster, MongoClusterOptions } from "mongodb-runner";
1010
import { downloadCryptLibrary } from "../packages/build/src/packaging/download-crypt-library";
11+
import { dir } from "console";
1112

1213
const execFile = promisify(child_process.execFile);
1314

@@ -171,6 +172,7 @@ export class MongoRunnerSetup extends MongodSetup {
171172
topology: "standalone",
172173
tmpDir: path.join(tmpDir, "mongodb-runner", "dbs", dirPath),
173174
logDir: path.join(tmpDir, "mongodb-runner", "logs", dirPath),
175+
binDir: path.join(tmpDir, "mongodb-runner"),
174176
version: version,
175177
...this._opts,
176178
});

0 commit comments

Comments
 (0)