jstests/noPassthrough/libs/sharded_index_consistency_metrics_helpers.js
/*
 * Asserts that eventually the number of sharded collections with inconsistent indexes in the
 * serverStatus output is equal to the expected count.
 */
Asserts that eventually the number of sharded collections with inconsistent indexes in the
serverStatus output is equal to the expected count.
Asserts that eventually the number of sharded collections with inconsistent indexes in the serverStatus output is equal to the expected count .
function checkServerStatusNumCollsWithInconsistentIndexes(conn, expectedCount, timeout) {
    assert.soon(
        () => {
            return expectedCount == getServerStatusNumCollsWithInconsistentIndexes(conn);
        },
        `expected count of sharded collections with inconsistent indexes to eventually equal ${
            expectedCount}`,
        timeout ,
        1000 );
}
function checkServerStatusNumCollsWithInconsistentIndexes ( conn , expectedCount , timeout ) { assert . soon ( ( ) => { return expectedCount == getServerStatusNumCollsWithInconsistentIndexes ( conn ) ; } , ` ${ expectedCount } ` , timeout , 1000 ) ; }
Asserts that eventually the number of sharded collections with inconsistent indexes in the
 serverStatus output is equal to the expected count.
Asserts that eventually the number of sharded collections with inconsistent indexes in the serverStatus output is equal to the expected count .
/* timeout */ /* interval */