summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-04-09 13:27:55 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-01 08:20:18 +0000
commit70267d23ea889dcb8a8b4cd89e23a831b824faa9 (patch)
tree03444b9dbec09d722ba258c2284e04830c30895f
parent530a87be18dd1d86fab4e7bfb7672b930f880cd2 (diff)
downloadmongo-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.js15
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,
- }));
-});