File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/DataProtection/Extensions/test Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ public void System_UsesProvidedDirectory_WithConfigurationCallback()
115
115
}
116
116
117
117
[ ConditionalFact ]
118
- [ Flaky ( "https://github.com/aspnet/AspNetCore-Internal/issues/2177" , FlakyOn . AzP . Windows ) ]
119
118
[ X509StoreIsAvailable ( StoreName . My , StoreLocation . CurrentUser ) ]
120
119
[ SkipOnHelix ( "https://github.com/aspnet/AspNetCore/issues/6720" ) ]
121
120
public void System_UsesProvidedDirectoryAndCertificate ( )
@@ -133,7 +132,7 @@ public void System_UsesProvidedDirectoryAndCertificate()
133
132
var certificateStore = new X509Store ( StoreName . My , StoreLocation . CurrentUser ) ;
134
133
certificateStore . Open ( OpenFlags . ReadWrite ) ;
135
134
var certificate = certificateStore . Certificates . Find ( X509FindType . FindBySubjectName , "TestCert" , false ) [ 0 ] ;
136
-
135
+ Assert . True ( certificate . HasPrivateKey , "Cert should have a private key" ) ;
137
136
try
138
137
{
139
138
// Step 1: directory should be completely empty
@@ -186,7 +185,7 @@ public void System_UsesProvidedCertificateNotFromStore()
186
185
certificateStore . Open ( OpenFlags . ReadWrite ) ;
187
186
var certInStore = certificateStore . Certificates . Find ( X509FindType . FindBySubjectName , "TestCert" , false ) [ 0 ] ;
188
187
Assert . NotNull ( certInStore ) ;
189
- Assert . False ( certInStore . HasPrivateKey ) ;
188
+ Assert . False ( certInStore . HasPrivateKey , "Cert should not have private key" ) ;
190
189
191
190
try
192
191
{
You can’t perform that action at this time.
0 commit comments