@@ -210,31 +210,29 @@ function generateTopologyTests(testSuites, testContext, filter) {
210
210
if ( ! shouldRun ) this . skip ( ) ;
211
211
} ;
212
212
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
+ }
223
222
224
- // run the actual test
225
- await runTestSuiteTest ( this . configuration , spec , testContext ) ;
223
+ // run the actual test
224
+ await runTestSuiteTest ( this . configuration , spec , testContext ) ;
226
225
227
- if ( spec . failPoint ) {
228
- await testContext . disableFailPoint ( spec . failPoint ) ;
229
- }
226
+ if ( spec . failPoint ) {
227
+ await testContext . disableFailPoint ( spec . failPoint ) ;
228
+ }
230
229
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
+ } ) ;
238
236
}
239
237
}
240
238
0 commit comments