Skip to content

Commit

Permalink
Update WebAppTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed Apr 24, 2024
1 parent 609c331 commit 6627111
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/IntegrationTests/WebAppTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6627111

Please sign in to comment.