From 97db4938f7dfd7ecee6bbd83c7b542fb0711bf5e Mon Sep 17 00:00:00 2001 From: Brennan Date: Wed, 23 Oct 2019 12:45:43 -0700 Subject: [PATCH] Remove flaky test (#15269) --- .../test/FunctionalTests/ServerTests.cs | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs b/src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs index 1816fdcc282b..04228c6da6e4 100644 --- a/src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs +++ b/src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs @@ -345,10 +345,6 @@ public async Task Server_SetHttp503VebosityHittingThrottle_Success() 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 @@ public void Server_SetConnectionLimitArgumentValidation_Success() } } - [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(() => 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() {