summaryrefslogtreecommitdiff
path: root/jstests/replsets/remove_newly_added_field_votes_zero.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/remove_newly_added_field_votes_zero.js')
-rw-r--r--jstests/replsets/remove_newly_added_field_votes_zero.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/jstests/replsets/remove_newly_added_field_votes_zero.js b/jstests/replsets/remove_newly_added_field_votes_zero.js
index cc443439580..5423462afc5 100644
--- a/jstests/replsets/remove_newly_added_field_votes_zero.js
+++ b/jstests/replsets/remove_newly_added_field_votes_zero.js
@@ -17,8 +17,7 @@ const testName = jsTestName();
const dbName = "testdb";
const collName = "testcoll";
-const rst = new ReplSetTest(
- {name: testName, nodes: 1, nodeOptions: {setParameter: {enableAutomaticReconfig: true}}});
+const rst = new ReplSetTest({name: testName, nodes: 1});
rst.startSet();
rst.initiateWithHighElectionTimeout();
@@ -26,10 +25,6 @@ const primary = rst.getPrimary();
const primaryDb = primary.getDB(dbName);
const primaryColl = primaryDb.getCollection(collName);
-// TODO(SERVER-46808): Move this into ReplSetTest.initiate
-waitForNewlyAddedRemovalForNodeToBeCommitted(primary, 0);
-waitForConfigReplication(primary, rst.nodes);
-
assert.commandWorked(primaryColl.insert({a: 1}));
jsTestLog("Adding a new non-voting node to the replica set");
@@ -38,7 +33,6 @@ const secondary0 = rst.add({
setParameter: {
'failpoint.initialSyncHangBeforeFinish': tojson({mode: 'alwaysOn'}),
'numInitialSyncAttempts': 1,
- 'enableAutomaticReconfig': true,
}
});
rst.reInitiate();
@@ -85,7 +79,6 @@ const secondary1 = rst.add({
setParameter: {
'failpoint.initialSyncHangBeforeFinish': tojson({mode: 'alwaysOn'}),
'numInitialSyncAttempts': 1,
- 'enableAutomaticReconfig': true,
}
});
rst.reInitiate();