Skip to content

Commit ef442be

Browse files
Remove flaky test (#15269) (#16717)
1 parent e89f2f4 commit ef442be

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/Servers/HttpSys/test/FunctionalTests/ServerTests.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ public async Task Server_SetHttp503VebosityHittingThrottle_Success()
345345
Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
346346
}
347347
}
348-
349-
// A connection has been closed, try again.
350-
string responseText = await SendRequestAsync(address);
351-
Assert.Equal(string.Empty, responseText);
352348
}
353349
}
354350
}
@@ -366,31 +362,6 @@ public void Server_SetConnectionLimitArgumentValidation_Success()
366362
}
367363
}
368364

369-
[ConditionalFact]
370-
public async Task Server_SetConnectionLimit_Success()
371-
{
372-
using (Utilities.CreateDynamicHost(out var address, options =>
373-
{
374-
Assert.Null(options.MaxConnections);
375-
options.MaxConnections = 3;
376-
}, httpContext => Task.FromResult(0)))
377-
{
378-
using (var client1 = await SendHungRequestAsync("GET", address))
379-
using (var client2 = await SendHungRequestAsync("GET", address))
380-
{
381-
using (var client3 = await SendHungRequestAsync("GET", address))
382-
{
383-
// Maxed out, refuses connection and throws
384-
await Assert.ThrowsAsync<HttpRequestException>(() => SendRequestAsync(address));
385-
}
386-
387-
// A connection has been closed, try again.
388-
string responseText = await SendRequestAsync(address);
389-
Assert.Equal(string.Empty, responseText);
390-
}
391-
}
392-
}
393-
394365
[ConditionalFact]
395366
public async Task Server_SetConnectionLimitChangeAfterStarted_Success()
396367
{

0 commit comments

Comments
 (0)