diff options
-rw-r--r-- | jstests/core/timeseries/timeseries_delete_hint.js | 8 | ||||
-rw-r--r-- | jstests/core/timeseries/timeseries_update.js | 7 |
2 files changed, 3 insertions, 12 deletions
diff --git a/jstests/core/timeseries/timeseries_delete_hint.js b/jstests/core/timeseries/timeseries_delete_hint.js index 6cd12fb0be8..ebcca3e3560 100644 --- a/jstests/core/timeseries/timeseries_delete_hint.js +++ b/jstests/core/timeseries/timeseries_delete_hint.js @@ -180,14 +180,6 @@ validateDeleteIndex([objA, objB, objC], [{[metaFieldName]: -1}, {[timeFieldName]: 1}], "IXSCAN { control.min.time: 1, control.max.time: 1 }"); -// Query on a collection with multiple indexes using the timeField index as a hint. -validateDeleteIndex([objA, objB, objC], - [objA, objB], - 1, - [{q: {[metaFieldName]: {c: "C"}}, limit: 0, hint: {[timeFieldName]: 1}}], - [{[metaFieldName]: -1}, {[timeFieldName]: 1}], - "IXSCAN { control.min.time: 1, control.max.time: 1 }"); - // Query on a collection with multiple indexes using an invalid index name. validateDeleteIndex([objA, objB, objC], [objA, objB, objC], diff --git a/jstests/core/timeseries/timeseries_update.js b/jstests/core/timeseries/timeseries_update.js index 57eb7ec1958..1c3070b9b87 100644 --- a/jstests/core/timeseries/timeseries_update.js +++ b/jstests/core/timeseries/timeseries_update.js @@ -347,7 +347,7 @@ TimeseriesTest.run((insert) => { failCode: ErrorCodes.InvalidOptions, }); - // Rename a subfield the metaField. + // Rename a subfield of the metaField. testUpdate({ initialDocList: [doc1, doc2], updateList: [{ @@ -360,7 +360,7 @@ TimeseriesTest.run((insert) => { n: 1, }); - // Rename a subfield the metaField to something not in the metaField. + // Rename a subfield of the metaField to something not in the metaField. testUpdate({ initialDocList: [doc1, doc2, doc4], updateList: [{ @@ -870,7 +870,6 @@ TimeseriesTest.run((insert) => { q: { "$jsonSchema": { "required": [metaFieldName], - "properties": {[metaFieldName]: {"required": [metaFieldName]}} } }, @@ -1199,7 +1198,7 @@ TimeseriesTest.run((insert) => { n: 3, }); - // Query on the metafield and modify the metaField using collation with the default strength + // Query on the metaField and modify the metaField using collation with the default strength // (level 3). testUpdate({ initialDocList: [collationDoc1, collationDoc2, collationDoc3], |