diff options
-rw-r--r-- | jstests/replsets/catchup_takeover_one_high_priority.js | 4 |
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(). |