summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_drop_collection.js
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2019-10-31 13:35:41 +0000
committerevergreen <evergreen@mongodb.com>2019-10-31 13:35:41 +0000
commitfd7aaa92a2e3309980689e99125eead70e7c0317 (patch)
treeca5cd9b0e5df7f2bb107f098ac82e26e4c1b585a /jstests/replsets/initial_sync_drop_collection.js
parent8e9a8b5552ae078e1890ec319909b7268adcfaac (diff)
downloadmongo-fd7aaa92a2e3309980689e99125eead70e7c0317.tar.gz
SERVER-44310 Make waitForFailPoint command require maxTimeMS
Diffstat (limited to 'jstests/replsets/initial_sync_drop_collection.js')
-rw-r--r--jstests/replsets/initial_sync_drop_collection.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_drop_collection.js b/jstests/replsets/initial_sync_drop_collection.js
index 51b335df0a3..b5b1e83b6a0 100644
--- a/jstests/replsets/initial_sync_drop_collection.js
+++ b/jstests/replsets/initial_sync_drop_collection.js
@@ -12,6 +12,7 @@ return;
TestData.skipCheckDBHashes = true;
load("jstests/libs/check_log.js");
+load("jstests/libs/fail_point_util.js");
load('jstests/replsets/libs/two_phase_drops.js');
load("jstests/libs/uuid_util.js");
@@ -55,7 +56,11 @@ function setupTest({failPoint, secondaryStartupParams}) {
secondaryColl = secondaryDB[collName];
jsTestLog("Waiting for secondary to reach failPoint " + failPoint);
- assert.commandWorked(secondary.adminCommand({waitForFailPoint: failPoint, timesEntered: 1}));
+ assert.commandWorked(secondary.adminCommand({
+ waitForFailPoint: failPoint,
+ timesEntered: 1,
+ maxTimeMS: kDefaultWaitForFailPointTimeout
+ }));
// Restarting the secondary may have resulted in an election. Wait until the system
// stabilizes and reaches RS_STARTUP2 state.