diff options
Diffstat (limited to 'jstests/core/timeseries/timeseries_out_of_order.js')
-rw-r--r-- | jstests/core/timeseries/timeseries_out_of_order.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/timeseries/timeseries_out_of_order.js b/jstests/core/timeseries/timeseries_out_of_order.js index 0a7f0afa365..ff842393773 100644 --- a/jstests/core/timeseries/timeseries_out_of_order.js +++ b/jstests/core/timeseries/timeseries_out_of_order.js @@ -37,7 +37,7 @@ TimeseriesTest.run((insert) => { assert.contains(bucketsColl.getName(), db.getCollectionNames()); assert.commandWorked(insert(coll, docs)); - assert.docEq(coll.find().sort({_id: 1}).toArray(), docs); + assert.docEq(docs, coll.find().sort({_id: 1}).toArray()); const buckets = bucketsColl.find().sort({_id: 1}).toArray(); jsTestLog('Checking buckets:' + tojson(buckets)); |