Skip to content

Commit 7908d1b

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 7908d1b

File tree

3 files changed

+102
-23
lines changed

3 files changed

+102
-23
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ export class MongoRunnerSetup extends MongodSetup {
169169

170170
this._cluster = await MongoCluster.start({
171171
topology: "standalone",
172-
tmpDir: path.join(tmpDir, "mongodb-runner", "dbs", dirPath),
172+
tmpDir: path.join(tmpDir, "mongodb-runner", "dbs"),
173173
logDir: path.join(tmpDir, "mongodb-runner", "logs", dirPath),
174+
binDir: path.join(tmpDir, "mongodb-runner"),
174175
version: version,
175176
...this._opts,
176177
});

0 commit comments

Comments
 (0)