diff options
Diffstat (limited to 'jstests/aggregation/sources/merge/requires_unique_index.js')
-rw-r--r-- | jstests/aggregation/sources/merge/requires_unique_index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/aggregation/sources/merge/requires_unique_index.js b/jstests/aggregation/sources/merge/requires_unique_index.js index 1565381c6c3..2e94b8bddab 100644 --- a/jstests/aggregation/sources/merge/requires_unique_index.js +++ b/jstests/aggregation/sources/merge/requires_unique_index.js @@ -343,8 +343,8 @@ function dropWithoutImplicitRecreate(coll) { } } ])); - assert.docEq(target.findOne({"a.b": "hi", proofOfUpdate: "PROOF"}), - {_id: "TARGET", a: {b: "hi"}, proofOfUpdate: "PROOF"}); + assert.docEq({_id: "TARGET", a: {b: "hi"}, proofOfUpdate: "PROOF"}, + target.findOne({"a.b": "hi", proofOfUpdate: "PROOF"})); }()); // Test that a unique index that is sparse can still be used. |