jstests/noPassthrough/libs/index_build.js
/**
     * Wait for all index builds to stop and return its op id.
     */
Wait for all index builds to stop and return its op id.
Wait for all index builds to stop and return its op id .
static waitForIndexBuildToStop(database, collectionName, indexName) {
        assert.soon(function() {
            return IndexBuildTest.getIndexBuildOpId(database, collectionName, indexName) === -1;
        }, "Index build operations still running after unblocking or killOp");
    }
static waitForIndexBuildToStop ( database , collectionName , indexName ) { assert . soon ( function ( ) { return IndexBuildTest . getIndexBuildOpId ( database , collectionName , indexName ) === - 1 ; } , "Index build operations still running after unblocking or killOp" ) ; }
Wait for all index builds to stop and return its op id.
Wait for all index builds to stop and return its op id .