Skip to content

Commit

Permalink
chore(mocha-fixtures): dont start replset unless "START_REPLICA_SET" …
Browse files Browse the repository at this point in the history
…is given
  • Loading branch information
hasezoey committed Aug 22, 2023
1 parent 57b6eab commit cca124b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mocha-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let mongorreplset;

// decide whether to start MMS instances or use the existing URI's
const startMemoryInstance = !process.env.MONGOOSE_TEST_URI;
const startMemoryReplset = !process.env.MONGOOSE_REPLSET_URI;
const startMemoryReplset = !process.env.MONGOOSE_REPLSET_URI && !!process.env.START_REPLICA_SET;

module.exports.mochaGlobalSetup = async function mochaGlobalSetup() {
let instanceuri;
Expand Down

0 comments on commit cca124b

Please sign in to comment.