summaryrefslogtreecommitdiff
path: root/jstests/replsets/drain.js
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2015-11-10 17:15:49 -0500
committerEric Milkie <milkie@10gen.com>2015-11-10 17:15:49 -0500
commit2ba6eb9c4bfe18001ad903f47fc99f3126489781 (patch)
tree7f53fd66fb89605ca772c23ca2a091c6cace6aae /jstests/replsets/drain.js
parent8d9337834608600eaff01b14f490ff5b9e3edcd6 (diff)
downloadmongo-2ba6eb9c4bfe18001ad903f47fc99f3126489781.tar.gz
SERVER-21396 raise default electionTimeoutMillis to 10 seconds
Diffstat (limited to 'jstests/replsets/drain.js')
-rw-r--r--jstests/replsets/drain.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/drain.js b/jstests/replsets/drain.js
index 0101fb9be7a..1f3e3428015 100644
--- a/jstests/replsets/drain.js
+++ b/jstests/replsets/drain.js
@@ -57,7 +57,7 @@
// Kill primary; secondary will enter drain mode to catch up
primary.getDB("admin").shutdownServer({force:true});
- var electionTimeout = (isPV0 ? 60 : 10 ) * 1000; // Timeout in milliseconds
+ var electionTimeout = (isPV0 ? 60 : 20 ) * 1000; // Timeout in milliseconds
replSet.waitForState(secondary, replSet.PRIMARY, electionTimeout);
// Ensure new primary is not yet writable