summaryrefslogtreecommitdiff
path: root/jstests/core/timeseries/timeseries_metric_index_compound.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/timeseries/timeseries_metric_index_compound.js')
-rw-r--r--jstests/core/timeseries/timeseries_metric_index_compound.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/timeseries/timeseries_metric_index_compound.js b/jstests/core/timeseries/timeseries_metric_index_compound.js
index 76051e62456..cc15e06a871 100644
--- a/jstests/core/timeseries/timeseries_metric_index_compound.js
+++ b/jstests/core/timeseries/timeseries_metric_index_compound.js
@@ -11,8 +11,9 @@
"use strict";
load("jstests/core/timeseries/libs/timeseries.js");
+load("jstests/libs/feature_flag_util.js");
-if (!TimeseriesTest.timeseriesMetricIndexesEnabled(db.getMongo())) {
+if (!FeatureFlagUtil.isEnabled(db, "TimeseriesMetricIndexes")) {
jsTestLog(
"Skipped test as the featureFlagTimeseriesMetricIndexes feature flag is not enabled.");
return;