jstests/replsets/initial_sync_test_fixture_test.js
/**
 * Helper function to check that the specific message appeared exactly once in the logs and that
 * there is no other message saying that the next batch is about to be applied. This will show
 * that oplog application is paused.
 */
Helper function to check that the specific message appeared exactly once in the logs and that
there is no other message saying that the next batch is about to be applied. This will show
that oplog application is paused.
Helper function to check that the specific message appeared exactly once in the logs and that there is no other message saying that the next batch is about to be applied . This will show that oplog application is paused .
function checkLogForOplogApplicationMsg(node, size) {
    let msg = "Initial Syncer is about to apply the next oplog batch of size: ";
    checkLog.containsWithCount(node, msg, 1, 5 * 1000);
    msg += size;
    assert(checkLog.checkContainsOnce(node, msg));
}
function checkLogForOplogApplicationMsg ( node , size ) { let msg = "Initial Syncer is about to apply the next oplog batch of size: " ; checkLog . containsWithCount ( node , msg , 1 , 5 * 1000 ) ; msg += size ; assert ( checkLog . checkContainsOnce ( node , msg ) ) ; }
Helper function to check that the specific message appeared exactly once in the logs and that
 there is no other message saying that the next batch is about to be applied.
Helper function to check that the specific message appeared exactly once in the logs and that there is no other message saying that the next batch is about to be applied .