jstests/replsets/libs/initial_sync_test.js
/**
     * Asserts that there are no open transactions.
     */
Asserts that there are no open transactions.
Asserts that there are no open transactions .
function assertNoOpenTxns() {
        const status = assert.commandWorked(primary.adminCommand('serverStatus'));
        assert(typeof status.transactions === "object", status);
        assert.eq(0, status.transactions.currentOpen, status.transactions);
    }
function assertNoOpenTxns ( ) { const status = assert . commandWorked ( primary . adminCommand ( 'serverStatus' ) ) ; assert ( typeof status . transactions === "object" , status ) ; assert . eq ( 0 , status . transactions . currentOpen , status . transactions ) ; }
Asserts that there are no open transactions.
Asserts that there are no open transactions .