diff options
Diffstat (limited to 'jstests/aggregation/match_no_swap_rand.js')
-rw-r--r-- | jstests/aggregation/match_no_swap_rand.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/match_no_swap_rand.js b/jstests/aggregation/match_no_swap_rand.js index 508056e97f4..3206f6fa792 100644 --- a/jstests/aggregation/match_no_swap_rand.js +++ b/jstests/aggregation/match_no_swap_rand.js @@ -31,7 +31,7 @@ function assertScanFilterEq({coll, pipeline, filter}) { // Sometimes explain will have 'filter' set to an empty object, other times there will be no // 'filter'. If we are expecting there to be no filter on the COLLSCAN, either is acceptable. if (filter) { - assert.docEq(collScan.filter, filter); + assert.docEq(filter, collScan.filter); } else { assert(!collScan.filter || Object.keys(collScan.filter).length == 0); } |