summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_fcv.js
diff options
context:
space:
mode:
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.