diff options
Diffstat (limited to 'jstests/core/timeseries/bucket_unpacking_with_sort.js')
-rw-r--r-- | jstests/core/timeseries/bucket_unpacking_with_sort.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/timeseries/bucket_unpacking_with_sort.js b/jstests/core/timeseries/bucket_unpacking_with_sort.js index 97256a2d457..13248964ec8 100644 --- a/jstests/core/timeseries/bucket_unpacking_with_sort.js +++ b/jstests/core/timeseries/bucket_unpacking_with_sort.js @@ -207,7 +207,7 @@ const runRewritesTest = (sortSpec, const ogExplainFull = testColl.explain().aggregate(ogPipeline, options); // Assert correct - assert.docEq(optResults, ogResults); + assert.docEq(ogResults, optResults); // Make sure we're not testing trivial / empty queries. assert.gt(ogResults.length, 0, 'Expected the queries in this test to have nonempty results'); @@ -242,7 +242,7 @@ const runRewritesTest = (sortSpec, let foundMatch = findFirstMatch(optExplain); if (!precise) { assert.docEq( - foundMatch, bucketSpanMatch, 'Expected an extra $match to check the bucket span'); + bucketSpanMatch, foundMatch, 'Expected an extra $match to check the bucket span'); } else { // (We don't have a 'assert.notDocEq' helper, but docEq is 'eq' + 'sortDoc'.) assert.neq(sortDoc(foundMatch), |