diff options
author | Benety Goh <benety@mongodb.com> | 2022-01-13 17:17:59 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-13 23:16:30 +0000 |
commit | 8034407b08b6a77455715db105dd2058d3e7903c (patch) | |
tree | dc24e2055afd802171201ee5ea9d8f107467100e /jstests/core/capped_update.js | |
parent | 8b3bdf09245f23493ad27d2d1ab705ce1c827c5a (diff) | |
download | mongo-8034407b08b6a77455715db105dd2058d3e7903c.tar.gz |
SERVER-58865 allow size changes in capped updates
Diffstat (limited to 'jstests/core/capped_update.js')
-rw-r--r-- | jstests/core/capped_update.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/core/capped_update.js b/jstests/core/capped_update.js index ac71ca6ad0d..9ea661e19d5 100644 --- a/jstests/core/capped_update.js +++ b/jstests/core/capped_update.js @@ -1,9 +1,10 @@ /** * Tests various update scenarios on capped collections: - * -- SERVER-20529: Ensure capped document sizes do not change + * -- SERVER-58865: Allow modifications that change capped document sizes. * -- SERVER-11983: Don't create _id field on capped updates * @tags: [ * requires_capped, + * requires_fcv_53, * uses_testing_only_commands, * # godinsert and can't run under replication * assumes_standalone_mongod, @@ -30,9 +31,9 @@ for (let j = 1; j <= 10; j++) { assert.commandWorked(t.insert(docs)); assert.commandWorked(t.update({_id: 3}, {s: "Hello, Mongo!"})); // Mongo is same length as World -assert.writeError(t.update({_id: 3}, {$set: {s: "Hello!"}})); -assert.writeError(t.update({_id: 10}, {})); -assert.writeError(t.update({_id: 10}, {s: "Hello, World!!!"})); +assert.commandWorked(t.update({_id: 3}, {$set: {s: "Hello!"}})); +assert.commandWorked(t.update({_id: 10}, {})); +assert.commandWorked(t.update({_id: 10}, {s: "Hello, World!!!"})); assert.commandWorked(localDB.runCommand({godinsert: t.getName(), obj: {a: 2}})); let doc = t.findOne({a: 2}); |