increase timeout on WebRequest timeout test (#44612)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Fri, 13 Nov 2020 03:01:23 +0000 (19:01 -0800)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 03:01:23 +0000 (22:01 -0500)
src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs

index 4abc374..f124d68 100644 (file)
@@ -511,12 +511,12 @@ namespace System.Net.Tests
         }
 
         [Fact]
-        public async Task Timeout_SetTenMillisecondsOnLoopback_ThrowsWebException()
+        public async Task Timeout_Set30MillisecondsOnLoopback_ThrowsWebException()
         {
             await LoopbackServer.CreateServerAsync((server, url) =>
             {
                 HttpWebRequest request = WebRequest.CreateHttp(url);
-                request.Timeout = 10; // ms.
+                request.Timeout = 30; // ms.
 
                 var sw = Stopwatch.StartNew();
                 WebException exception = Assert.Throws<WebException>(() => request.GetResponse());