Set HTTP request timeout to infinite

- Prevent failures due to slow requests when running many tests in parallel
This commit is contained in:
Mike Harder 2018-08-15 13:18:48 -07:00
parent 1924b32c33
commit 9290f3fd52
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@ namespace AspNetCoreSdkTests.Templates
{
// Allow self-signed certs
ServerCertificateCustomValidationCallback = (m, c, ch, p) => true
});
})
{
// Prevent failures due to slow requests when running many tests in parallel
Timeout = Timeout.InfiniteTimeSpan,
};
private static ConcurrentDictionary<(Type Type, NuGetPackageSource NuGetPackageSource, RuntimeIdentifier RuntimeIdentifier), Template> _templates =
new ConcurrentDictionary<(Type Type, NuGetPackageSource NuGetPackageSource, RuntimeIdentifier RuntimeIdentifier), Template>();