File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -346,15 +346,13 @@ test_x509_auth (void *unused)
346
346
bson_error_t error = {0 };
347
347
bool ok ;
348
348
{
349
- mongoc_client_t * client = test_framework_client_new_from_uri (uri , NULL );
350
349
capture_logs (true);
350
+ mongoc_client_t * client = test_framework_client_new_from_uri (uri , NULL );
351
351
ok = try_insert (client , & error );
352
- #if defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT )
352
+ #if defined(MONGOC_ENABLE_SSL_SECURE_TRANSPORT ) || defined( MONGOC_ENABLE_SSL_OPENSSL )
353
353
ASSERT_CAPTURED_LOG ("tls" , MONGOC_LOG_LEVEL_ERROR , "Cannot find certificate" );
354
354
#elif defined(MONGOC_ENABLE_SSL_SECURE_CHANNEL )
355
355
ASSERT_CAPTURED_LOG ("tls" , MONGOC_LOG_LEVEL_ERROR , "Failed to open file" );
356
- #elif defined(MONGOC_ENABLE_SSL_OPENSSL )
357
- ASSERT_NO_CAPTURED_LOGS ("tls" );
358
356
#endif
359
357
mongoc_client_destroy (client );
360
358
}
You can’t perform that action at this time.
0 commit comments