diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-04-09 13:27:55 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-01 08:20:18 +0000 |
commit | 70267d23ea889dcb8a8b4cd89e23a831b824faa9 (patch) | |
tree | 03444b9dbec09d722ba258c2284e04830c30895f | |
parent | 530a87be18dd1d86fab4e7bfb7672b930f880cd2 (diff) | |
download | mongo-70267d23ea889dcb8a8b4cd89e23a831b824faa9.tar.gz |
SERVER-55975 Remove the test for findAndModify against admin/config
This reverts commit f759d69c172b87445950bc8932da3e60505e2e6e.
(cherry picked from commit b9e2c2d00184bb0c66781af5f13b17eefc40fede)
-rw-r--r-- | jstests/core/find_and_modify.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/jstests/core/find_and_modify.js b/jstests/core/find_and_modify.js index a86ed841548..df698f17811 100644 --- a/jstests/core/find_and_modify.js +++ b/jstests/core/find_and_modify.js @@ -149,18 +149,3 @@ assert.eq("missagain", cmdRes.value._id); // Two upserts should have happened. assert.eq(2, t.count()); - -// -// findAndModify must work against the admin and config collections -// - -['admin', 'config'].forEach(function(dbName) { - var sysDb = db.getSiblingDB(dbName); - assert.commandWorked(sysDb.runCommand({ - findAndModify: 'find_and_modify_js_test', - query: {_id: 0}, - update: {'$set': {Value: dbName}}, - upsert: true, - new: true, - })); -}); |