Skip to content

Commit 8656a0a

Browse files
committed
fixup! Improve platform detection for tests
1 parent fc93cea commit 8656a0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ await TestConfiguration.WhenAllOrAnyFailedWithTimeout(
9191
}
9292

9393
[ConditionalFact(nameof(SupportsSendingCustomCANamesInTls))]
94+
[PlatformSpecific(TestPlatforms.Windows)]
9495
public void SslStream_SendCertificateTrust_CertificateCollection_ThrowsOnWindows()
9596
{
9697
(X509Certificate2 certificate, X509Certificate2Collection caCerts) = TestHelper.GenerateCertificates(nameof(SslStream_SendCertificateTrust_CertificateCollection));
@@ -99,7 +100,7 @@ public void SslStream_SendCertificateTrust_CertificateCollection_ThrowsOnWindows
99100
}
100101

101102
[ConditionalFact(nameof(DoesNotSupportSendingCustomCANamesInTls))]
102-
[SkipOnPlatform(TestPlatform.Windows)]
103+
[SkipOnPlatform(TestPlatforms.Windows, "Windows tested separately")]
103104
public void SslStream_SendCertificateTrust_ThrowsOnUnsupportedPlatform()
104105
{
105106
(X509Certificate2 certificate, X509Certificate2Collection caCerts) = TestHelper.GenerateCertificates(nameof(SslStream_SendCertificateTrust_CertificateCollection));

0 commit comments

Comments
 (0)