@@ -316,9 +316,9 @@ fn doctor_no_args_is_valid() {
316316#[ test]
317317fn doctor_verify_chain_with_json_output ( ) {
318318 // Chain checks that are expected to fail because the leaf certificate is expired.
319- // On Windows, both the rustls and schannel backends run and detect the expiry .
319+ // On Windows, only the schannel backend runs (CI builds with native-tls, not rustls) .
320320 let expected_chain_failures: & [ & str ] = if cfg ! ( windows) {
321- & [ "rustls_check_chain" , " schannel_check_chain"]
321+ & [ "schannel_check_chain" ]
322322 } else {
323323 & [ "rustls_check_chain" ]
324324 } ;
@@ -480,14 +480,10 @@ CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
480480#[ test]
481481fn doctor_missing_san_and_eku ( ) {
482482 // Checks that are expected to fail because the certificate is missing SAN and EKU.
483- // The rustls end entity cert check also fails because rustls requires SAN for hostname verification .
484- // The schannel end entity cert check succeeds because schannel falls back to CN matching .
483+ // On non-Windows, rustls runs: end entity cert check also fails because rustls requires SAN.
484+ // On Windows (native-tls/ schannel only), schannel end entity cert check succeeds ( CN fallback) .
485485 let expected_failures: & [ & str ] = if cfg ! ( windows) {
486486 & [
487- "rustls_check_end_entity_cert" ,
488- "rustls_check_chain" ,
489- "rustls_check_san_extension" ,
490- "rustls_check_server_auth_eku" ,
491487 "schannel_check_chain" ,
492488 "schannel_check_san_extension" ,
493489 "schannel_check_server_auth_eku" ,
@@ -503,12 +499,7 @@ fn doctor_missing_san_and_eku() {
503499
504500 // Checks expected to carry a warning about TlsVerifyStrict.
505501 let expected_warnings: & [ & str ] = if cfg ! ( windows) {
506- & [
507- "rustls_check_san_extension" ,
508- "rustls_check_server_auth_eku" ,
509- "schannel_check_san_extension" ,
510- "schannel_check_server_auth_eku" ,
511- ]
502+ & [ "schannel_check_san_extension" , "schannel_check_server_auth_eku" ]
512503 } else {
513504 & [ "rustls_check_san_extension" , "rustls_check_server_auth_eku" ]
514505 } ;
0 commit comments