jstests/replsets/libs/initial_sync_test.js
/**
     * Flip failpoints and wait until the first synchronization failpoint is hit so that initial
     * sync can make progress by issuing the next command, but pausing before the following command
     * can be issued.
     */
Flip failpoints and wait until the first synchronization failpoint is hit so that initial
sync can make progress by issuing the next command, but pausing before the following command
can be issued.
Flip failpoints and wait until the first synchronization failpoint is hit so that initial sync can make progress by issuing the next command but pausing before the following command can be issued .
function resumeAndPauseBeforeNextSyncSourceCommand() {
        assert.commandWorked(secondary.adminCommand(
            {"configureFailPoint": 'initialSyncFuzzerSynchronizationPoint1', "mode": 'alwaysOn'}));
        assert.commandWorked(secondary.adminCommand(
            {"configureFailPoint": 'initialSyncFuzzerSynchronizationPoint2', "mode": 'off'}));
        waitUntilInitialSyncPausedOrCompleted();
    }
function resumeAndPauseBeforeNextSyncSourceCommand ( ) { assert . commandWorked ( secondary . adminCommand ( { "configureFailPoint" : 'initialSyncFuzzerSynchronizationPoint1' , "mode" : 'alwaysOn' } ) ) ; assert . commandWorked ( secondary . adminCommand ( { "configureFailPoint" : 'initialSyncFuzzerSynchronizationPoint2' , "mode" : 'off' } ) ) ; waitUntilInitialSyncPausedOrCompleted ( ) ; }
Flip failpoints and wait until the first synchronization failpoint is hit so that initial
 sync can make progress by issuing the next command, but pausing before the following command
 can be issued.
Flip failpoints and wait until the first synchronization failpoint is hit so that initial sync can make progress by issuing the next command but pausing before the following command can be issued .