Change SkipReason for ThreadCountTests on OS X.
This commit is contained in:
parent
1a273f5a34
commit
afa89b3993
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
{
|
{
|
||||||
[ConditionalTheory]
|
[ConditionalTheory]
|
||||||
[MemberData(nameof(OneToTen))]
|
[MemberData(nameof(OneToTen))]
|
||||||
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Test failures pending investigation.")]
|
[OSSkipCondition(OperatingSystems.MacOSX, SkipReason = "Tests fail on OS X due to low file descriptor limit.")]
|
||||||
public async Task OneToTenThreads(int threadCount)
|
public async Task OneToTenThreads(int threadCount)
|
||||||
{
|
{
|
||||||
var hostBuilder = new WebHostBuilder()
|
var hostBuilder = new WebHostBuilder()
|
||||||
|
|
@ -31,7 +31,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
{
|
{
|
||||||
return context.Response.WriteAsync("Hello World");
|
return context.Response.WriteAsync("Hello World");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
using (var host = hostBuilder.Build())
|
using (var host = hostBuilder.Build())
|
||||||
{
|
{
|
||||||
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.FunctionalTests
|
||||||
var requestTask = client.GetStringAsync($"http://localhost:{host.GetPort()}/");
|
var requestTask = client.GetStringAsync($"http://localhost:{host.GetPort()}/");
|
||||||
requestTasks.Add(requestTask);
|
requestTasks.Add(requestTask);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var result in await Task.WhenAll(requestTasks))
|
foreach (var result in await Task.WhenAll(requestTasks))
|
||||||
{
|
{
|
||||||
Assert.Equal("Hello World", result);
|
Assert.Equal("Hello World", result);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue