summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/index_stepdown_unique.js
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-05-07 07:39:06 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-07 11:52:47 +0000
commit474e6228cf95e16aa205256a0f15ef9f9388252d (patch)
tree2b1ad04f25873c901ca49afd064ff8840f0fb192 /jstests/noPassthrough/index_stepdown_unique.js
parent03df68b3e2fb6d6d30dea41a581e3c3aec874f33 (diff)
downloadmongo-474e6228cf95e16aa205256a0f15ef9f9388252d.tar.gz
SERVER-38961 remove IndexBuildTest.supportsTwoPhaseIndexBuild() references from noPassthrough tests
Diffstat (limited to 'jstests/noPassthrough/index_stepdown_unique.js')
-rw-r--r--jstests/noPassthrough/index_stepdown_unique.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/jstests/noPassthrough/index_stepdown_unique.js b/jstests/noPassthrough/index_stepdown_unique.js
index e9a32fed508..8dc41a3b309 100644
--- a/jstests/noPassthrough/index_stepdown_unique.js
+++ b/jstests/noPassthrough/index_stepdown_unique.js
@@ -78,13 +78,8 @@ const secondaryColl = rst.getSecondary().getDB(dbName).getCollection(collName);
res = assert.commandWorked(secondaryColl.validate());
assert(res.valid, 'expected validation to succeed: ' + tojson(res));
-if (IndexBuildTest.supportsTwoPhaseIndexBuild(rst.getPrimary())) {
- IndexBuildTest.assertIndexes(primaryColl, 2, ['_id_', 'a_1']);
- IndexBuildTest.assertIndexes(secondaryColl, 2, ['_id_', 'a_1']);
-} else {
- IndexBuildTest.assertIndexes(primaryColl, 1, ['_id_']);
- IndexBuildTest.assertIndexes(secondaryColl, 1, ['_id_']);
-}
+IndexBuildTest.assertIndexes(primaryColl, 2, ['_id_', 'a_1']);
+IndexBuildTest.assertIndexes(secondaryColl, 2, ['_id_', 'a_1']);
rst.stopSet();
})();