jstests/concurrency/fsm_libs/resmoke_runner.js
// Returns true if the workload's teardown succeeds and false if the workload's teardown fails.
Returns true if the workload's teardown succeeds and false if the workload's teardown fails.
Returns true if the workload ' s teardown succeeds and false if the workload ' s teardown fails .
function cleanupWorkload(workload, context, cluster, errors, header) {
    const phase = 'before workload ' + workload + ' teardown';
    try {
        teardownWorkload(workload, context, cluster);
    } catch (e) {
        errors.push(new WorkloadFailure(e.toString(), e.stack, 'main', header + ' Teardown'));
        return false;
    }
    return true;
}
function cleanupWorkload ( workload , context , cluster , errors , header ) { const phase = 'before workload ' + workload + ' teardown' ; try { teardownWorkload ( workload , context , cluster ) ; } catch ( e ) { errors . push ( new WorkloadFailure ( e . toString ( ) , e . stack , 'main' , header + ' Teardown' ) ) ; return false ; } return true ; }
Returns true if the workload's teardown succeeds and false if the workload's teardown fails.
Returns true if the workload ' s teardown succeeds and false if the workload ' s teardown fails .