diff options
Diffstat (limited to 'jstests/sharding/merge_requires_unique_index.js')
-rw-r--r-- | jstests/sharding/merge_requires_unique_index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/sharding/merge_requires_unique_index.js b/jstests/sharding/merge_requires_unique_index.js index 1f0c10bbf2d..1555c130476 100644 --- a/jstests/sharding/merge_requires_unique_index.js +++ b/jstests/sharding/merge_requires_unique_index.js @@ -210,9 +210,9 @@ function runOnFieldsTests(targetShardKey, targetSplit) { on: Object.keys(dottedPathIndexSpec) } }])); - assert.docEq(targetColl.findOne({"newField.subField": "hi", proofOfUpdate: "PROOF"}, - {"newField.subField": 1, proofOfUpdate: 1, _id: 0}), - {newField: {subField: "hi"}, proofOfUpdate: "PROOF"}); + assert.docEq({newField: {subField: "hi"}, proofOfUpdate: "PROOF"}, + targetColl.findOne({"newField.subField": "hi", proofOfUpdate: "PROOF"}, + {"newField.subField": 1, proofOfUpdate: 1, _id: 0})); } else { assertErrCodeAndErrMsgContains(sourceColl, [{ @@ -243,9 +243,9 @@ function runOnFieldsTests(targetShardKey, targetSplit) { } } ])); - assert.docEq(targetColl.findOne({"newField.subField": "hi", proofOfUpdate: "PROOF"}, - {"newField.subField": 1, proofOfUpdate: 1, _id: 0}), - {newField: {subField: "hi"}, proofOfUpdate: "PROOF"}); + assert.docEq({newField: {subField: "hi"}, proofOfUpdate: "PROOF"}, + targetColl.findOne({"newField.subField": "hi", proofOfUpdate: "PROOF"}, + {"newField.subField": 1, proofOfUpdate: 1, _id: 0})); } } |