summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-07-14 11:34:28 -0400
committerBenety Goh <benety@mongodb.com>2017-07-14 15:13:33 -0400
commit89b6d520f1276e6c09a68e5e56c2dc6443debf36 (patch)
tree80f067d501154c935c3dd95040ce0cfd5842c691
parente483bd0b43725bb08fc0faccddc1defe006a7b14 (diff)
downloadmongo-89b6d520f1276e6c09a68e5e56c2dc6443debf36.tar.gz
SERVER-30138 make node 1 unelectable in initial_sync_invalid_views.js
-rw-r--r--jstests/noPassthrough/initial_sync_invalid_views.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_invalid_views.js b/jstests/noPassthrough/initial_sync_invalid_views.js
index 28b2a03a363..90a7822eea9 100644
--- a/jstests/noPassthrough/initial_sync_invalid_views.js
+++ b/jstests/noPassthrough/initial_sync_invalid_views.js
@@ -27,6 +27,7 @@
// Add a secondary node but make it hang before copying databases.
let secondary = replSet.add({setParameter: secondaryParams});
+ replSet.nodeOptions.n1 = {rsConfig: {priority: 0}};
secondary.setSlaveOk();
assert.commandWorked(secondary.getDB('admin').runCommand(