summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_fcv.js
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2019-10-25 18:52:44 +0000
committerevergreen <evergreen@mongodb.com>2019-10-25 18:52:44 +0000
commit99d90208c67351469dae5983ed233638e61cf732 (patch)
tree97457551066481846a206a1396e415a593887430 /jstests/replsets/initial_sync_fcv.js
parentb4c673a55d93c77297914b4c7407b141a985661a (diff)
downloadmongo-99d90208c67351469dae5983ed233638e61cf732.tar.gz
SERVER-39165 Add waitForFailpoint command and update initial sync tests
Diffstat (limited to 'jstests/replsets/initial_sync_fcv.js')
-rw-r--r--jstests/replsets/initial_sync_fcv.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_fcv.js b/jstests/replsets/initial_sync_fcv.js
index 01c2744949a..ab83e24d8fe 100644
--- a/jstests/replsets/initial_sync_fcv.js
+++ b/jstests/replsets/initial_sync_fcv.js
@@ -44,8 +44,8 @@ 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.
- checkLog.contains(secondary,
- 'initial sync - initialSyncHangBeforeListCollections fail point enabled');
+ assert.commandWorked(secondary.adminCommand(
+ {waitForFailPoint: "initialSyncHangBeforeListCollections", timesEntered: 1}));
// Initial sync is stopped right before 'listCollections' on the test database. We now run
// the test command to modify the fCV.