jstests/sharding/timeseries_update.js
/**
 * Helper function to generate the parameters to pass to 'testUpdates' when an update is expected to
 * fail.
 */
Helper function to generate the parameters to pass to 'testUpdates' when an update is expected to
fail.
Helper function to generate the parameters to pass to ' testUpdates ' when an update is expected to fail .
function expectFailedUpdate(initialDocList) {
    return {
        initialDocList,
        resultDocList: initialDocList,
        n: 0,
        failCode: ErrorCodes.InvalidOptions,
    };
}
function expectFailedUpdate ( initialDocList ) { return { initialDocList , resultDocList : initialDocList , n : 0 , failCode : ErrorCodes . InvalidOptions , } ; }
Helper function to generate the parameters to pass to 'testUpdates' when an update is expected to
 fail.
Helper function to generate the parameters to pass to ' testUpdates ' when an update is expected to fail .