summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavi Vetriselvan <pavithra.vetriselvan@mongodb.com>2020-09-03 09:17:45 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-03 22:12:35 +0000
commit8db9cd370aeefacb64c035c92b1ebd8bfb9e8ce5 (patch)
tree15daf1f31613bf92a1358ee88f6af84f814d453e
parentac9aa69929bb2f1b9d5014aa3de5799abfded18c (diff)
downloadmongo-8db9cd370aeefacb64c035c92b1ebd8bfb9e8ce5.tar.gz
SERVER-50623 make catchup_takeover_one_high_priority.js robust to slow machines
-rw-r--r--jstests/replsets/catchup_takeover_one_high_priority.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/catchup_takeover_one_high_priority.js b/jstests/replsets/catchup_takeover_one_high_priority.js
index 2a1b0d249e2..0f5e3d76ac3 100644
--- a/jstests/replsets/catchup_takeover_one_high_priority.js
+++ b/jstests/replsets/catchup_takeover_one_high_priority.js
@@ -83,7 +83,7 @@ jsTestLog('node 1 is now primary, but cannot accept writes');
// Confirm that the most up-to-date node becomes primary
// after the default catchup delay.
-replSet.waitForState(0, ReplSetTest.State.PRIMARY, 60 * 1000);
+replSet.waitForState(0, ReplSetTest.State.PRIMARY, replSet.kDefaultTimeoutMS);
jsTestLog('node 0 performed catchup takeover and is now primary');
// Wait until the old primary steps down.
@@ -96,7 +96,7 @@ replSet.awaitReplication();
// Confirm that the highest priority node becomes primary
// after catching up.
-replSet.waitForState(2, ReplSetTest.State.PRIMARY, 30 * 1000);
+replSet.waitForState(2, ReplSetTest.State.PRIMARY, replSet.kDefaultTimeoutMS);
jsTestLog('node 2 performed priority takeover and is now primary');
// Wait until the old primary steps down so the connections won't be closed during stopSet().