summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/libs
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/libs
parent03df68b3e2fb6d6d30dea41a581e3c3aec874f33 (diff)
downloadmongo-474e6228cf95e16aa205256a0f15ef9f9388252d.tar.gz
SERVER-38961 remove IndexBuildTest.supportsTwoPhaseIndexBuild() references from noPassthrough tests
Diffstat (limited to 'jstests/noPassthrough/libs')
-rw-r--r--jstests/noPassthrough/libs/index_initial_sync.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/noPassthrough/libs/index_initial_sync.js b/jstests/noPassthrough/libs/index_initial_sync.js
index d22ec50fcd6..699abbd9c4c 100644
--- a/jstests/noPassthrough/libs/index_initial_sync.js
+++ b/jstests/noPassthrough/libs/index_initial_sync.js
@@ -53,12 +53,8 @@ var IndexInitialSyncTest = function(options) {
const secondaryDB = secondary.getDB(testDB.getName());
const secondaryColl = secondaryDB.getCollection(coll.getName());
try {
- if (IndexBuildTest.supportsTwoPhaseIndexBuild(primary)) {
- IndexBuildTest.assertIndexes(
- secondaryColl, 2, ['_id_'], ['a_1'], {includeBuildUUIDs: true});
- } else {
- IndexBuildTest.assertIndexes(secondaryColl, 2, ['_id_', 'a_1']);
- }
+ IndexBuildTest.assertIndexes(
+ secondaryColl, 2, ['_id_'], ['a_1'], {includeBuildUUIDs: true});
} finally {
IndexBuildTest.resumeIndexBuilds(primary);
}