summaryrefslogtreecommitdiff
path: root/jstests/aggregation/sources/setWindowFields/locf.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/sources/setWindowFields/locf.js')
-rw-r--r--jstests/aggregation/sources/setWindowFields/locf.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/aggregation/sources/setWindowFields/locf.js b/jstests/aggregation/sources/setWindowFields/locf.js
index b6a7d7960b6..8038c2cbc1b 100644
--- a/jstests/aggregation/sources/setWindowFields/locf.js
+++ b/jstests/aggregation/sources/setWindowFields/locf.js
@@ -12,6 +12,11 @@ load("jstests/aggregation/extras/window_function_helpers.js");
load("jstests/aggregation/extras/utils.js"); // For arrayEq.
load("jstests/libs/feature_flag_util.js"); // For isEnabled.
+if (!FeatureFlagUtil.isEnabled(db, "Locf")) {
+ jsTestLog("Skipping as featureFlagLocf is not enabled");
+ return;
+}
+
const coll = db[jsTestName()];
coll.drop();