summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2021-09-22 14:45:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-22 15:09:41 +0000
commit9663a79c213acda66e27ac2100c0b8e4952e216a (patch)
treed8f7395a6d5a5b15ce00cb0db8c34f5e1da46400
parent816f629e6e7d7c971ac36af46773331531fc4daf (diff)
downloadmongo-9663a79c213acda66e27ac2100c0b8e4952e216a.tar.gz
SERVER-59410 Clean up time-series update/delete tests
-rw-r--r--jstests/core/timeseries/timeseries_delete_hint.js8
-rw-r--r--jstests/core/timeseries/timeseries_update.js7
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],