From 6627111c11272e7b24b45de4975589f326dd38b0 Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Wed, 24 Apr 2024 14:52:43 -0700 Subject: [PATCH] Update WebAppTests.cs --- src/IntegrationTests/WebAppTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/IntegrationTests/WebAppTests.cs b/src/IntegrationTests/WebAppTests.cs index 16b942a..d635bca 100644 --- a/src/IntegrationTests/WebAppTests.cs +++ b/src/IntegrationTests/WebAppTests.cs @@ -13,11 +13,13 @@ public async Task GetWebAppUrlsReturnsOkStatusCode() appHost.WithRandomParameterValues(); appHost.WithRandomVolumeNames(); appHost.WriteOutputTo(new XUnitTextWriter(outputHelper)); - appHost.Services.ConfigureHttpClientDefaults(client => + appHost.Services.ConfigureHttpClientDefaults(clientBuilder => { - client.AddStandardResilienceHandler(options => + var timeout = TimeSpan.FromSeconds(360); + clientBuilder.ConfigureHttpClient(httpClient => httpClient.Timeout = timeout); + clientBuilder.AddStandardResilienceHandler(options => { - options.TotalRequestTimeout.Timeout = TimeSpan.FromSeconds(360); + options.TotalRequestTimeout.Timeout = timeout; options.AttemptTimeout.Timeout = TimeSpan.FromSeconds(120); options.Retry.BackoffType = Polly.DelayBackoffType.Constant; options.Retry.Delay = TimeSpan.FromSeconds(5);