jstests/core/find_and_modify_server6865.js
/**
     * Asserts that the specified findAndModify command returns an error.
     */
Asserts that the specified findAndModify command returns an error.
Asserts that the specified findAndModify command returns an error .
function testFAMFailed(insert, cmdObj) {
        t.drop();
        t.insert(insert);
        var res = t.runCommand('findAndModify', cmdObj);
        assert.commandFailed(res, 'findAndModify command unexpectedly succeeded');
    }
function testFAMFailed ( insert , cmdObj ) { t . drop ( ) ; t . insert ( insert ) ; var res = t . runCommand ( 'findAndModify' , cmdObj ) ; assert . commandFailed ( res , 'findAndModify command unexpectedly succeeded' ) ; }
Asserts that the specified findAndModify command returns an error.
Asserts that the specified findAndModify command returns an error .