Skip to content

Commit

Permalink
Remove flaky test (dotnet#15269)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanConroy authored Oct 23, 2019
1 parent e6c9912 commit 97db493
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -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<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()
{
Expand Down

0 comments on commit 97db493

Please sign in to comment.