Skip to content

Commit dc2901d

Browse files
committed
fix(NODE-4251): remove specific test case check
1 parent ef0c4b1 commit dc2901d

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

test/tools/spec-runner/index.js

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -210,31 +210,29 @@ function generateTopologyTests(testSuites, testContext, filter) {
210210
if (!shouldRun) this.skip();
211211
};
212212

213-
if (testSuite.name === 'fle2-CreateCollection') {
214-
describe(testSuite.name, function () {
215-
beforeEach(beforeEachFilter);
216-
beforeEach(() => prepareDatabaseForSuite(testSuite, testContext));
217-
afterEach(() => testContext.cleanupAfterSuite());
218-
for (const spec of testSuite.tests) {
219-
const mochaTest = it(spec.description, async function () {
220-
if (spec.failPoint) {
221-
await testContext.enableFailPoint(spec.failPoint);
222-
}
213+
describe(testSuite.name, function () {
214+
beforeEach(beforeEachFilter);
215+
beforeEach(() => prepareDatabaseForSuite(testSuite, testContext));
216+
afterEach(() => testContext.cleanupAfterSuite());
217+
for (const spec of testSuite.tests) {
218+
const mochaTest = it(spec.description, async function () {
219+
if (spec.failPoint) {
220+
await testContext.enableFailPoint(spec.failPoint);
221+
}
223222

224-
// run the actual test
225-
await runTestSuiteTest(this.configuration, spec, testContext);
223+
// run the actual test
224+
await runTestSuiteTest(this.configuration, spec, testContext);
226225

227-
if (spec.failPoint) {
228-
await testContext.disableFailPoint(spec.failPoint);
229-
}
226+
if (spec.failPoint) {
227+
await testContext.disableFailPoint(spec.failPoint);
228+
}
230229

231-
await validateOutcome(spec, testContext);
232-
});
233-
// Make the spec test available to the beforeEach filter
234-
mochaTest.spec = spec;
235-
}
236-
});
237-
}
230+
await validateOutcome(spec, testContext);
231+
});
232+
// Make the spec test available to the beforeEach filter
233+
mochaTest.spec = spec;
234+
}
235+
});
238236
}
239237
}
240238

0 commit comments

Comments
 (0)