diff options
Diffstat (limited to 'jstests/core/index_prepareUnique.js')
| -rw-r--r-- | jstests/core/index_prepareUnique.js | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/jstests/core/index_prepareUnique.js b/jstests/core/index_prepareUnique.js index 97b3d0ef874..196e80a1864 100644 --- a/jstests/core/index_prepareUnique.js +++ b/jstests/core/index_prepareUnique.js @@ -1,21 +1,17 @@ /** - * Tests that the createIndex command accepts a prepareUnique field and works accordingly - * then. + * Tests that the createIndex command accepts a prepareUnique field and works accordingly. * - * @tags: [requires_fcv_53] + * @tags: [assumes_no_implicit_collection_creation_after_drop] */ (function() { "use strict"; +load("jstests/libs/feature_flag_util.js"); + const coll = db.index_prepareUnique; coll.drop(); -const collModIndexUniqueEnabled = assert - .commandWorked(db.getMongo().adminCommand( - {getParameter: 1, featureFlagCollModIndexUnique: 1})) - .featureFlagCollModIndexUnique.value; - -if (!collModIndexUniqueEnabled) { +if (!FeatureFlagUtil.isEnabled(db, "CollModIndexUnique")) { jsTestLog('Skipping test because the collMod unique index feature flag is disabled.'); return; } @@ -48,4 +44,4 @@ indexesWithComments = coll.getIndexes().filter(function(doc) { return friendlyEqual(doc.prepareUnique, true); }); assert.eq(0, indexesWithComments.length); -})();
\ No newline at end of file +})(); |
