summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_fcv.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_fcv.js
parent8e9a8b5552ae078e1890ec319909b7268adcfaac (diff)
downloadmongo-fd7aaa92a2e3309980689e99125eead70e7c0317.tar.gz
SERVER-44310 Make waitForFailPoint command require maxTimeMS
Diffstat (limited to 'jstests/replsets/initial_sync_fcv.js')
-rw-r--r--jstests/replsets/initial_sync_fcv.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_fcv.js b/jstests/replsets/initial_sync_fcv.js
index e04f921bfe0..3f4ffb410f8 100644
--- a/jstests/replsets/initial_sync_fcv.js
+++ b/jstests/replsets/initial_sync_fcv.js
@@ -8,6 +8,7 @@
'use strict';
load('jstests/libs/check_log.js');
+load("jstests/libs/fail_point_util.js");
const rst = new ReplSetTest({nodes: 2});
rst.startSet();
@@ -47,8 +48,11 @@ function runInitialSync(cmd, initialFCV) {
// Initial sync clones the 'admin' database first, which will set the fCV on the
// secondary to initialFCV. We then block the secondary before issuing 'listCollections' on
// the test database.
- assert.commandWorked(
- secondary.adminCommand({waitForFailPoint: "hangBeforeClonerStage", timesEntered: 1}));
+ assert.commandWorked(secondary.adminCommand({
+ waitForFailPoint: "hangBeforeClonerStage",
+ timesEntered: 1,
+ maxTimeMS: kDefaultWaitForFailPointTimeout
+ }));
// Initial sync is stopped right before 'listCollections' on the test database. We now run
// the test command to modify the fCV.