jstests/core/txns/transactions_block_ddl.js
/**
 * Drops the test collection, recreates the collection and index before running each test.
 */
Drops the test collection, recreates the collection and index before running each test.
Drops the test collection recreates the collection and index before running each test .
function runSetup() {
    sessionDB.runCommand({drop: collName, writeConcern: {w: "majority"}});
    assert.commandWorked(sessionColl.runCommand({
        createIndexes: collName,
        indexes: [{
            key: {
                "b": 1,
            },
            name: "b_1"
        }],
        writeConcern: {w: "majority"}
    }));
}
function runSetup ( ) { sessionDB . runCommand ( { drop : collName , writeConcern : { w : "majority" } } ) ; assert . commandWorked ( sessionColl . runCommand ( { createIndexes : collName , indexes : [ { key : { "b" : 1 , } , name : "b_1" } ] , writeConcern : { w : "majority" } } ) ) ; }
Drops the test collection, recreates the collection and index before running each test.
Drops the test collection recreates the collection and index before running each test .