1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-09 17:44:48 +09:00

Fix condition to run CertificateCallbackThrowPropagates test on msquic 2.4 and higher (#105789)

* Fix condition

* Apply suggestions from code review

Co-authored-by: Radek Zikmund <32671551+rzikm@users.noreply.github.com>

---------

Co-authored-by: Radek Zikmund <32671551+rzikm@users.noreply.github.com>
This commit is contained in:
Ahmet Ibrahim Aksoy 2024-08-01 13:50:19 +02:00 committed by GitHub
parent 8b078abecf
commit 45f6952883
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ namespace System.Net.Quic.Tests
{
private static byte[] s_data = "Hello world!"u8.ToArray();
readonly CertificateSetup _certificates;
static bool SupportsAsyncCertValidation => QuicTestCollection.MsQuicVersion >= new Version(2, 4);
static bool DoesNotSupportAsyncCertValidation => QuicTestCollection.MsQuicVersion < new Version(2, 4);
public MsQuicTests(ITestOutputHelper output, CertificateSetup setup) : base(output)
{
@ -354,7 +354,7 @@ namespace System.Net.Quic.Tests
}
[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/99074", typeof(MsQuicTests), nameof(SupportsAsyncCertValidation))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/99074", typeof(MsQuicTests), nameof(DoesNotSupportAsyncCertValidation))]
public async Task CertificateCallbackThrowPropagates()
{
using CancellationTokenSource cts = new CancellationTokenSource(PassingTestTimeout);