From 00e182ea6c00286d8bed4b3a17e4ebe7698e48c1 Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Wed, 19 Jul 2023 12:43:01 +0300 Subject: [PATCH] Fix one more test (#1933) --- .../Functional/UrisHealthCheckTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/HealthChecks.Uris.Tests/Functional/UrisHealthCheckTests.cs b/test/HealthChecks.Uris.Tests/Functional/UrisHealthCheckTests.cs index d16c0ce7d6..8869721f33 100644 --- a/test/HealthChecks.Uris.Tests/Functional/UrisHealthCheckTests.cs +++ b/test/HealthChecks.Uris.Tests/Functional/UrisHealthCheckTests.cs @@ -39,13 +39,16 @@ protected override Task SendAsync(HttpRequestMessage reques [Fact] public async Task be_healthy_if_uri_is_available() { - var uri = new Uri("https://httpbin.org/get"); + var uri = new Uri("https://httpbin.org/get"); // does not matter var webHostBuilder = new WebHostBuilder() .ConfigureServices(services => { services.AddHealthChecks() - .AddUrlGroup(uri, tags: new string[] { "uris" }); + .AddUrlGroup( + uri, + configurePrimaryHttpMessageHandler: _ => new DelayStubMessageHandler(TimeSpan.Zero), + tags: new string[] { "uris" }); }) .Configure(app => {