jstests/concurrency/fsm_workload_helpers/assert_handle_fail_in_transaction.js
/**
 * Helper functions for handling errors that can only occur if commands are run inside multi-
 * statement transactions.
 */
Helper functions for handling errors that can only occur if commands are run inside multi
statement transactions.
Helper functions for handling errors that can only occur if commands are run inside multi statement transactions .
function assertWorkedHandleTxnErrors(res, errorCodes) {
    if (TestData.runInsideTransaction) {
        assertAlways.commandWorkedOrFailedWithCode(res, errorCodes);
    } else {
        assertAlways.commandWorked(res);
    }
}
function assertWorkedHandleTxnErrors ( res , errorCodes ) { if ( TestData . runInsideTransaction ) { assertAlways . commandWorkedOrFailedWithCode ( res , errorCodes ) ; } else { assertAlways . commandWorked ( res ) ; } }
Helper functions for handling errors that can only occur if commands are run inside multi
 statement transactions.
Helper functions for handling errors that can only occur if commands are run inside multi statement transactions .