Disable mock test on aot (#89390)
authorNatalia Kondratyeva <knatalia@microsoft.com>
Mon, 24 Jul 2023 18:20:27 +0000 (19:20 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 18:20:27 +0000 (20:20 +0200)
src/libraries/Microsoft.Extensions.Http/tests/Microsoft.Extensions.Http.Tests/DependencyInjection/HttpClientFactoryServiceCollectionExtensionsTest.cs

index 7b954cd..f537d8c 100644 (file)
@@ -1390,7 +1390,7 @@ namespace Microsoft.Extensions.DependencyInjection
             Assert.Same(testCredentials, ((HttpClientHandler)testBuilder.PrimaryHandler).Credentials);
         }
 
-        [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
+        [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported), nameof(PlatformDetection.IsReflectionEmitSupported))]
         public void AddHttpClient_ConfigureAdditionalHttpMessageHandlers_ModifyAdditionalHandlers()
         {
             // Arrange