diff options
author | Sanika Phanse <sanika.phanse@mongodb.com> | 2023-05-17 14:23:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 15:10:17 +0000 |
commit | d71a066275aef95e15de4e9701dc94c217871f20 (patch) | |
tree | cebaf09a63ffb3392ac00a6539fbc4fdeb275c7d | |
parent | 84475222a82ded97409472d83b16afb1c08a9af8 (diff) | |
download | mongo-d71a066275aef95e15de4e9701dc94c217871f20.tar.gz |
SERVER-77199 Change expected responses of upsert tests in updateOne_without_shard_key_basic.js
-rw-r--r-- | jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js b/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js index 43190e150d1..606d4ab2a7e 100644 --- a/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js +++ b/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js @@ -389,7 +389,7 @@ const testCases = [ updates: [{q: {y: 5}, u: {_id: 5, x: -1}, upsert: true}], }, options: [{ordered: true}, {ordered: false}], - expectedMods: [{_id: 5, x: -1, y: 5}], + expectedMods: [{_id: 5}, {x: -1}], expectedResponse: {n: 1, nModified: 0, upserted: [{"index": 0, _id: 5}]}, dbName: dbName, collName: collName @@ -408,7 +408,7 @@ const testCases = [ }, mustBeInRetryableWriteOrTransaction: true, options: [{ordered: true}, {ordered: false}], - expectedMods: [{_id: 0, x: xFieldValShard0_1, y: yFieldVal + 1}, {_id: 6, y: 6, x: -1}], + expectedMods: [{_id: 0}, {y: yFieldVal + 1}, {_id: 6}, {x: -1}], expectedResponse: {n: 2, nModified: 1, upserted: [{"index": 1, _id: 6}]}, dbName: dbName, collName: collName |