@@ -119,21 +119,26 @@ suite('OIDC Tests', function () {
119119 authNamePrefix : 'dev' ,
120120 } ;
121121
122- cluster = await MongoCluster . start ( {
123- ...defaultClusterOptions ,
124- version : '7.0.x' ,
125- downloadOptions : { enterprise : true } ,
126- args : [
127- '--setParameter' ,
128- '--debug' ,
129- 'authenticationMechanisms=SCRAM-SHA-256,MONGODB-OIDC' ,
130- // enableTestCommands allows using http:// issuers such as http://localhost
131- '--setParameter' ,
132- 'enableTestCommands=true' ,
133- '--setParameter' ,
134- `oidcIdentityProviders=${ JSON . stringify ( [ serverOidcConfig ] ) } ` ,
135- ] ,
136- } ) ;
122+ try {
123+ cluster = await MongoCluster . start ( {
124+ ...defaultClusterOptions ,
125+ version : '7.0.x' ,
126+ downloadOptions : { enterprise : true } ,
127+ args : [
128+ '--setParameter' ,
129+ '--debug' ,
130+ 'authenticationMechanisms=SCRAM-SHA-256,MONGODB-OIDC' ,
131+ // enableTestCommands allows using http:// issuers such as http://localhost
132+ '--setParameter' ,
133+ 'enableTestCommands=true' ,
134+ '--setParameter' ,
135+ `oidcIdentityProviders=${ JSON . stringify ( [ serverOidcConfig ] ) } ` ,
136+ ] ,
137+ } ) ;
138+ } catch ( error ) {
139+ console . error ( JSON . stringify ( ( error as any ) . errorLogEntries , null , 2 ) ) ;
140+ throw error ;
141+ }
137142
138143 const cs = new ConnectionString ( cluster . connectionString ) ;
139144 cs . searchParams . set ( 'authMechanism' , 'MONGODB-OIDC' ) ;
0 commit comments