Browse Source

Remove flaky test (#15269)

Brennan 6 years ago
parent
commit
97db4938f7
1 changed files with 0 additions and 29 deletions
  1. 0 29
      src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs

+ 0 - 29
src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs

@@ -345,10 +345,6 @@ namespace Microsoft.AspNetCore.Server.HttpSys
                             Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
                         }
                     }
-
-                    // A connection has been closed, try again.
-                    string responseText = await SendRequestAsync(address);
-                    Assert.Equal(string.Empty, responseText);
                 }
             }
         }
@@ -366,31 +362,6 @@ namespace Microsoft.AspNetCore.Server.HttpSys
             }
         }
 
-        [ConditionalFact]
-        public async Task Server_SetConnectionLimit_Success()
-        {
-            using (Utilities.CreateDynamicHost(out var address, options =>
-            {
-                Assert.Null(options.MaxConnections);
-                options.MaxConnections = 3;
-            }, httpContext => Task.FromResult(0)))
-            {
-                using (var client1 = await SendHungRequestAsync("GET", address))
-                using (var client2 = await SendHungRequestAsync("GET", address))
-                {
-                    using (var client3 = await SendHungRequestAsync("GET", address))
-                    {
-                        // Maxed out, refuses connection and throws
-                        await Assert.ThrowsAsync<HttpRequestException>(() => SendRequestAsync(address));
-                    }
-
-                    // A connection has been closed, try again.
-                    string responseText = await SendRequestAsync(address);
-                    Assert.Equal(string.Empty, responseText);
-                }
-            }
-        }
-
         [ConditionalFact]
         public async Task Server_SetConnectionLimitChangeAfterStarted_Success()
         {