summaryrefslogtreecommitdiff
path: root/jstests/core/collmod_convert_index_uniqueness.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/collmod_convert_index_uniqueness.js')
-rw-r--r--jstests/core/collmod_convert_index_uniqueness.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/jstests/core/collmod_convert_index_uniqueness.js b/jstests/core/collmod_convert_index_uniqueness.js
index 559a5fed82c..fc6588ae70c 100644
--- a/jstests/core/collmod_convert_index_uniqueness.js
+++ b/jstests/core/collmod_convert_index_uniqueness.js
@@ -5,7 +5,7 @@
* # Cannot implicitly shard accessed collections because of collection existing when none
* # expected.
* assumes_no_implicit_collection_creation_after_drop, # common tag in collMod tests.
- * requires_fcv_60,
+ * requires_fcv_52,
* requires_non_retryable_commands, # common tag in collMod tests.
* # TODO(SERVER-61181): Fix validation errors under ephemeralForTest.
* incompatible_with_eft,
@@ -19,9 +19,12 @@
(function() {
'use strict';
-load("jstests/libs/feature_flag_util.js");
+const collModIndexUniqueEnabled = assert
+ .commandWorked(db.getMongo().adminCommand(
+ {getParameter: 1, featureFlagCollModIndexUnique: 1}))
+ .featureFlagCollModIndexUnique.value;
-if (!FeatureFlagUtil.isEnabled(db, "CollModIndexUnique")) {
+if (!collModIndexUniqueEnabled) {
jsTestLog('Skipping test because the collMod unique index feature flag is disabled.');
return;
}