From 9290f3fd52055600a6904c38f16cf7b085c93bd4 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Wed, 15 Aug 2018 13:18:48 -0700 Subject: [PATCH] Set HTTP request timeout to infinite - Prevent failures due to slow requests when running many tests in parallel --- AspNetCoreSdkTests/Templates/Template.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AspNetCoreSdkTests/Templates/Template.cs b/AspNetCoreSdkTests/Templates/Template.cs index f901a6ea37..6b237f32ef 100644 --- a/AspNetCoreSdkTests/Templates/Template.cs +++ b/AspNetCoreSdkTests/Templates/Template.cs @@ -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>();