File tree 1 file changed +5
-2
lines changed
src/libraries/System.Net.Security/tests/FunctionalTests
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ public async Task SslStream_UntrustedCaWithCustomCallback_Throws(bool customCall
349
349
}
350
350
}
351
351
352
- [ Fact ]
352
+ [ ConditionalFact ]
353
353
[ ActiveIssue ( "https://github.com/dotnet/runtime/issues/46837" , TestPlatforms . OSX ) ]
354
354
public async Task SslStream_ClientCertificate_SendsChain ( )
355
355
{
@@ -371,7 +371,10 @@ public async Task SslStream_ClientCertificate_SendsChain()
371
371
chain . ChainPolicy . DisableCertificateDownloads = false ;
372
372
bool chainStatus = chain . Build ( clientCertificate ) ;
373
373
// Verify we can construct full chain
374
- Assert . True ( chain . ChainElements . Count >= clientChain . Count , "chain cannot be built" ) ;
374
+ if ( chain . ChainElements . Count < clientChain . Count )
375
+ {
376
+ throw new SkipTestException ( $ "chain cannot be built { chain . ChainElements . Count } ") ;
377
+ }
375
378
}
376
379
377
380
var clientOptions = new SslClientAuthenticationOptions ( ) { TargetHost = "localhost" , } ;
You can’t perform that action at this time.
0 commit comments