Skip to content

Commit bbff308

Browse files
authored
Unmark System_UsesProvidedDirectoryAndCertificate as flaky (#11125)
1 parent db72ea0 commit bbff308

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/DataProtection/Extensions/test/DataProtectionProviderTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public void System_UsesProvidedDirectory_WithConfigurationCallback()
115115
}
116116

117117
[ConditionalFact]
118-
[Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2177", FlakyOn.AzP.Windows)]
119118
[X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)]
120119
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")]
121120
public void System_UsesProvidedDirectoryAndCertificate()
@@ -133,7 +132,7 @@ public void System_UsesProvidedDirectoryAndCertificate()
133132
var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
134133
certificateStore.Open(OpenFlags.ReadWrite);
135134
var certificate = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0];
136-
135+
Assert.True(certificate.HasPrivateKey, "Cert should have a private key");
137136
try
138137
{
139138
// Step 1: directory should be completely empty
@@ -186,7 +185,7 @@ public void System_UsesProvidedCertificateNotFromStore()
186185
certificateStore.Open(OpenFlags.ReadWrite);
187186
var certInStore = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0];
188187
Assert.NotNull(certInStore);
189-
Assert.False(certInStore.HasPrivateKey);
188+
Assert.False(certInStore.HasPrivateKey, "Cert should not have private key");
190189

191190
try
192191
{

0 commit comments

Comments
 (0)