Dipose HttpClient
This commit is contained in:
parent
b72816e24c
commit
83c7abe87a
|
|
@ -73,8 +73,8 @@ namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
||||||
var httpClientHandler = new HttpClientHandler();
|
var httpClientHandler = new HttpClientHandler();
|
||||||
httpClientHandler.CookieContainer = cookieContainer;
|
httpClientHandler.CookieContainer = cookieContainer;
|
||||||
|
|
||||||
var httpClient = new HttpClient(httpClientHandler) { BaseAddress = new Uri(deploymentResult.ApplicationBaseUri) };
|
using (var httpClient = new HttpClient(httpClientHandler) { BaseAddress = new Uri(deploymentResult.ApplicationBaseUri) })
|
||||||
|
{
|
||||||
// Request to base address and check if various parts of the body are rendered & measure the cold startup time.
|
// Request to base address and check if various parts of the body are rendered & measure the cold startup time.
|
||||||
var response = await RetryHelper.RetryRequest(() =>
|
var response = await RetryHelper.RetryRequest(() =>
|
||||||
{
|
{
|
||||||
|
|
@ -85,6 +85,7 @@ namespace Microsoft.AspNetCore.Localization.FunctionalTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public async Task RunTestAndVerifyResponse(
|
public async Task RunTestAndVerifyResponse(
|
||||||
RuntimeFlavor runtimeFlavor,
|
RuntimeFlavor runtimeFlavor,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue