Do not expect quic to work on single file deployments (#81581)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Fri, 3 Feb 2023 04:23:17 +0000 (13:23 +0900)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 04:23:17 +0000 (13:23 +0900)
This new test is breaking runtime-extra-platforms CI legs.

src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs

index 1fbc8ec..5e9a5be 100644 (file)
@@ -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);
+            }
         }
     }
 }