From d71a066275aef95e15de4e9701dc94c217871f20 Mon Sep 17 00:00:00 2001 From: Sanika Phanse Date: Wed, 17 May 2023 14:23:32 +0000 Subject: SERVER-77199 Change expected responses of upsert tests in updateOne_without_shard_key_basic.js --- .../updateOne_without_shard_key/updateOne_without_shard_key_basic.js | 4 ++-- 1 file 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 -- cgit v1.2.1