From d1836f92ca8b0b0fc34ffe356e38c60afdc9e8b1 Mon Sep 17 00:00:00 2001 From: Todd Date: Fri, 20 Oct 2023 12:49:58 -0500 Subject: [PATCH] troubleshooting gh build --- test/Flurl.Test/Http/FlurlClientBuilderTests.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Flurl.Test/Http/FlurlClientBuilderTests.cs b/test/Flurl.Test/Http/FlurlClientBuilderTests.cs index 527fdd42..03782320 100644 --- a/test/Flurl.Test/Http/FlurlClientBuilderTests.cs +++ b/test/Flurl.Test/Http/FlurlClientBuilderTests.cs @@ -52,10 +52,15 @@ public async Task can_add_middleware() { [Test] public void inner_hanlder_is_SocketsHttpHandler_when_supported() { - var supported = typeof(HttpClientHandler).Assembly.DefinedTypes.Any(t => t.Name == "SocketsHttpHandler"); + var shh = typeof(HttpClientHandler).Assembly.DefinedTypes.FirstOrDefault(t => t.Name == "SocketsHttpHandler"); + var supported = (shh != null); #if NET Assert.IsTrue(supported, "SocketsHttpHandler should be defined"); // sanity check (tests the test, basically) #endif + if (supported) { + Console.WriteLine($"{shh.FullName} Found in {typeof(HttpClientHandler).Assembly.FullName}"); + } + HttpMessageHandler handler = null; new FlurlClientBuilder() .ConfigureInnerHandler(h => handler = h)