Move httpclient timeout to a better place
MODIFY
WalletWasabi.Tests/Helpers/HttpClientWrapper.cs
WalletWasabi.Tests/Helpers/HttpClientWrapper.cs
@@ -13,7 +13,6 @@ namespace WalletWasabi.Tests.Helpers
public HttpClientWrapper(HttpClient httpClient)
{
_httpClient = httpClient;
- _httpClient.Timeout = TimeSpan.FromMinutes(2);
}
public Func<Uri>? BaseUriGetter => ()=> _httpClient.BaseAddress;

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiApiApplicationFactory.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiApiApplicationFactory.cs
@@ -34,6 +34,11 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Integration
return host;
}
+ protected override void ConfigureClient(HttpClient client)
+ {
+ client.Timeout = TimeSpan.FromMinutes(10);
+ }
+
protected override IHostBuilder CreateHostBuilder()
{
var builder = Host.CreateDefaultBuilder().ConfigureWebHostDefaults(x =>

Move httpclient timeout to a better place