Skip to content

Commit 9317db0

Browse files
authored
Cleanup certificates before running ConnectWithRevocation_WithCallback_Core on Windows (#104014)
1 parent be8a09f commit 9317db0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ private async Task ConnectWithRevocation_WithCallback_Core(
196196

197197
(Stream clientStream, Stream serverStream) = TestHelper.GetConnectedStreams();
198198

199+
if (PlatformDetection.IsWindows && testName != null)
200+
{
201+
TestHelper.CleanupCertificates(testName);
202+
}
203+
199204
CertificateAuthority.BuildPrivatePki(
200205
PkiOptions.EndEntityRevocationViaOcsp | PkiOptions.CrlEverywhere,
201206
out RevocationResponder responder,

0 commit comments

Comments
 (0)