summaryrefslogtreecommitdiff
path: root/jstests/core/timeseries/timeseries_delete_hint.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/timeseries/timeseries_delete_hint.js')
-rw-r--r--jstests/core/timeseries/timeseries_delete_hint.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/timeseries/timeseries_delete_hint.js b/jstests/core/timeseries/timeseries_delete_hint.js
index 69fb2bc5a91..0facca816e1 100644
--- a/jstests/core/timeseries/timeseries_delete_hint.js
+++ b/jstests/core/timeseries/timeseries_delete_hint.js
@@ -18,11 +18,11 @@
(function() {
"use strict";
+load("jstests/core/timeseries/libs/timeseries.js");
load("jstests/libs/curop_helpers.js");
-load("jstests/libs/feature_flag_util.js");
load('jstests/libs/parallel_shell_helpers.js');
-if (!FeatureFlagUtil.isEnabled(db, "TimeseriesUpdatesAndDeletes")) {
+if (!TimeseriesTest.timeseriesUpdatesAndDeletesEnabled(db.getMongo())) {
jsTestLog("Skipping test because the time-series updates and deletes feature flag is disabled");
return;
}
@@ -71,7 +71,7 @@ const validateDeleteIndex = (docsToInsert,
: assert.commandWorked(
testDB.runCommand({delete: coll.getName(), deletes: deleteQuery}));
assert.eq(res["n"], expectedNRemoved);
- assert.sameMembers(coll.find({}, {_id: 0}).toArray(), expectedRemainingDocs);
+ assert.docEq(coll.find({}, {_id: 0}).toArray(), expectedRemainingDocs);
assert(coll.drop());
},
docsToInsert,