Skip to content

Commit 5a3762d

Browse files
m4nti5Evergreen Agent
authored andcommitted
SERVER-58999 Add replSet parameter when setting up configsvr node on require_api_version.js test
1 parent 6be31f8 commit 5a3762d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jstests/noPassthrough/require_api_version.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ function requireApiVersionOnShardOrConfigServerTest() {
133133
"mongod should not be able to start up with --shardsvr and requireApiVersion=true");
134134

135135
assert.throws(
136-
() => MongoRunner.runMongod({configsvr: "", setParameter: {"requireApiVersion": 1}}),
136+
() => MongoRunner.runMongod(
137+
{configsvr: "", replSet: "dummy", setParameter: {"requireApiVersion": 1}}),
137138
[],
138139
"mongod should not be able to start up with --configsvr and requireApiVersion=true");
139140

0 commit comments

Comments
 (0)