Skip to content

Commit bf87924

Browse files
committed
test: add enableMajorityReadConcern before starting nodes
1 parent 436d340 commit bf87924

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/environments.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ class ReplicaSetEnvironment extends EnvironmentBase {
6363
genReplsetConfig(31004, { arbiter: true })
6464
];
6565

66-
this.manager = new ReplSetManager('mongod', this.nodes, {
67-
replSet: 'rs'
68-
});
69-
7066
// Do we have 3.2+
7167
const version = discoverResult.version.join('.');
7268
if (semver.satisfies(version, '>=3.2.0')) {
@@ -75,6 +71,10 @@ class ReplicaSetEnvironment extends EnvironmentBase {
7571
return x;
7672
});
7773
}
74+
75+
this.manager = new ReplSetManager('mongod', this.nodes, {
76+
replSet: 'rs'
77+
});
7878
}
7979
}
8080

0 commit comments

Comments
 (0)