summaryrefslogtreecommitdiff
path: root/jstests/core/index_partial_create_drop.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/index_partial_create_drop.js')
-rw-r--r--jstests/core/index_partial_create_drop.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/index_partial_create_drop.js b/jstests/core/index_partial_create_drop.js
index c0a095b30df..800ad6ab64e 100644
--- a/jstests/core/index_partial_create_drop.js
+++ b/jstests/core/index_partial_create_drop.js
@@ -13,7 +13,7 @@
// Test partial index creation and drops.
-load("jstests/libs/feature_flag_util.js");
+load("jstests/core/timeseries/libs/timeseries.js");
(function() {
"use strict";
@@ -46,7 +46,7 @@ assert.commandFailed(
assert.commandFailed(coll.createIndex(
{x: 1}, {partialFilterExpression: {$expr: {$eq: [{$trim: {input: "$x"}}, "hi"]}}}));
-if (!FeatureFlagUtil.isEnabled(db, "TimeseriesMetricIndexes")) {
+if (!TimeseriesTest.timeseriesMetricIndexesEnabled(db.getMongo())) {
// Only top-level $and is permitted in a partial filter expression.
assert.commandFailedWithCode(coll.createIndex({x: 1}, {
partialFilterExpression: