From: Michal Strehovský Date: Fri, 3 Feb 2023 04:23:17 +0000 (+0900) Subject: Do not expect quic to work on single file deployments (#81581) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4254 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6eb30abc64ff178b13257360f38c0767e3022a62;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Do not expect quic to work on single file deployments (#81581) This new test is breaking runtime-extra-platforms CI legs. --- diff --git a/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs b/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs index 1fbc8ec..5e9a5be 100644 --- a/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs +++ b/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs @@ -23,8 +23,18 @@ namespace System.Net.Quic.Tests [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.SupportsTls13))] public void SupportedWindowsPlatforms_IsSupportedIsTrue() { - Assert.True(QuicListener.IsSupported); - Assert.True(QuicConnection.IsSupported); + if (PlatformDetection.HasAssemblyFiles) + { + Assert.True(QuicListener.IsSupported); + Assert.True(QuicConnection.IsSupported); + } + else + { + // The above if check can be deleted when https://github.com/dotnet/runtime/issues/73290 + // gets fixed and this test starts failing. + Assert.False(QuicListener.IsSupported); + Assert.False(QuicConnection.IsSupported); + } } } }