summaryrefslogtreecommitdiff
path: root/jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js')
-rw-r--r--jstests/sharding/updateOne_without_shard_key/updateOne_without_shard_key_basic.js4
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