-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
jstests\aggregation\sources\setWindowFields\window_functions_on_timeseries_coll.js
SERVER-68710 is addressing an issue with arrayEq (and related helpers in jstests/aggregation/extras/utils.js), where comparison of Object subtypes (NumberLong, ObjectId, ...) always evaluated to true.
And this test fails on patch runs:
Also consider use of assertArrayEq, which will print the expected vs actual objects.
Example:
assertArrayEq({expected: expectedResults, actual: coll.aggregate(pipeline).toArray()});
In this particular instance, it might only be a typo, but please check.
https://github.com/10gen/mongo/blob/master/jstests/aggregation/sources/setWindowFields/window_functions_on_timeseries_coll.js#L190
- is depended on by
-
SERVER-68710 arrayEq/anyEq behave incorrectly with mongo shell types
- Closed