From 45ab51e980fbd19aea4674cc0009e914001555e1 Mon Sep 17 00:00:00 2001 From: Nicholas Zolnierz Date: Wed, 30 Nov 2022 17:10:14 +0000 Subject: SERVER-71572 Fix typo in window functions test over timeseries collection --- .../sources/setWindowFields/window_functions_on_timeseries_coll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/aggregation') diff --git a/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js b/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js index 38a928c72d7..0f322c45139 100644 --- a/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js +++ b/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js @@ -118,7 +118,7 @@ function assertExplainBehaviorAndCorrectResults(pipeline, expectedOpts, expected assert.sameMembers(expectedOpts.inExcludeSpec.exclude, unpackBucket.exclude); } - assert(arrayEq(expectedResults, coll.aggregate(pipeline).toArray())); + assertArrayEq({expected: expectedResults, actual: coll.aggregate(pipeline).toArray()}); } assertExplainBehaviorAndCorrectResults( @@ -187,7 +187,7 @@ assertExplainBehaviorAndCorrectResults( }, { _id: 3, - time: ISODate("2021-01-01T12:05:00Z"), + time: ISODate("2021-01-01T01:05:00Z"), attributes: {sensor: "S2", field: "a"}, temperature: 60, language: "en", -- cgit v1.2.1