jstests/replsets/initial_sync_test_fixture_test.js
/**
 * Helper function to check that specific messages appeared or did not appear in the logs.
 */
Helper function to check that specific messages appeared or did not appear in the logs.
Helper function to check that specific messages appeared or did not appear in the logs .
function checkLogForMsg(node, msg, contains) {
    if (contains) {
        jsTest.log("Check for presence of message (" + node.port + "): |" + msg + "|");
        assert(checkLog.checkContainsOnce(node, msg));
    } else {
        jsTest.log("Check for absence of message (" + node.port + "): |" + msg + "|");
        assert(!checkLog.checkContainsOnce(node, msg));
    }
}
function checkLogForMsg ( node , msg , contains ) { if ( contains ) { jsTest . log ( "Check for presence of message (" + node . port + "): |" + msg + "|" ) ; assert ( checkLog . checkContainsOnce ( node , msg ) ) ; } else { jsTest . log ( "Check for absence of message (" + node . port + "): |" + msg + "|" ) ; assert ( ! checkLog . checkContainsOnce ( node , msg ) ) ; } }
Helper function to check that specific messages appeared or did not appear in the logs.
Helper function to check that specific messages appeared or did not appear in the logs .