From bbff308d22cf66c503b1e20af3268050b46dd3f2 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Wed, 12 Jun 2019 09:35:49 -0700 Subject: [PATCH] Unmark System_UsesProvidedDirectoryAndCertificate as flaky (#11125) --- .../Extensions/test/DataProtectionProviderTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs b/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs index 65c542f499..ec1f26ef50 100644 --- a/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs +++ b/src/DataProtection/Extensions/test/DataProtectionProviderTests.cs @@ -115,7 +115,6 @@ namespace Microsoft.AspNetCore.DataProtection } [ConditionalFact] - [Flaky("https://github.com/aspnet/AspNetCore-Internal/issues/2177", FlakyOn.AzP.Windows)] [X509StoreIsAvailable(StoreName.My, StoreLocation.CurrentUser)] [SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/6720")] public void System_UsesProvidedDirectoryAndCertificate() @@ -133,7 +132,7 @@ namespace Microsoft.AspNetCore.DataProtection var certificateStore = new X509Store(StoreName.My, StoreLocation.CurrentUser); certificateStore.Open(OpenFlags.ReadWrite); var certificate = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; - + Assert.True(certificate.HasPrivateKey, "Cert should have a private key"); try { // Step 1: directory should be completely empty @@ -186,7 +185,7 @@ namespace Microsoft.AspNetCore.DataProtection certificateStore.Open(OpenFlags.ReadWrite); var certInStore = certificateStore.Certificates.Find(X509FindType.FindBySubjectName, "TestCert", false)[0]; Assert.NotNull(certInStore); - Assert.False(certInStore.HasPrivateKey); + Assert.False(certInStore.HasPrivateKey, "Cert should not have private key"); try {