summaryrefslogtreecommitdiff
path: root/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js')
-rw-r--r--jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
index c7cd0d7ca89..5d4951c972e 100644
--- a/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
+++ b/jstests/sharding/safe_secondary_reads_single_migration_waitForDelete.js
@@ -326,8 +326,8 @@ commandsRemovedFromMongosIn44.forEach(function(cmd) {
testCases[cmd] = {skip: "must define test coverage for 4.2 backwards compatibility"};
});
-// Set the secondaries to priority 0 and votes 0 to prevent the primaries from stepping down.
-let rsOpts = {nodes: [{rsConfig: {votes: 1}}, {rsConfig: {priority: 0, votes: 0}}]};
+// Set the secondaries to priority 0 to prevent the primaries from stepping down.
+let rsOpts = {nodes: [{}, {rsConfig: {priority: 0}}]};
let st = new ShardingTest({mongos: 2, shards: {rs0: rsOpts, rs1: rsOpts}});
let recipientShardPrimary = st.rs1.getPrimary();