Disable tests that randomly hang on Linux (#442).

This commit is contained in:
Cesar Blum Silveira 2015-10-19 23:54:49 -07:00
parent 47365e421f
commit 77f29142aa
3 changed files with 7 additions and 3 deletions

View File

@ -223,7 +223,7 @@ namespace Microsoft.AspNet.TestHost
} }
[ConditionalFact] [ConditionalFact]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)] [OSSkipCondition(OperatingSystems.Linux, SkipReason = "Hangs randomly (issue #422).")]
public async Task ExceptionAfterFirstWriteIsReported() public async Task ExceptionAfterFirstWriteIsReported()
{ {
ManualResetEvent block = new ManualResetEvent(false); ManualResetEvent block = new ManualResetEvent(false);

View File

@ -11,6 +11,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Testing.xunit;
using Xunit; using Xunit;
namespace Microsoft.AspNet.TestHost namespace Microsoft.AspNet.TestHost
@ -280,7 +281,8 @@ namespace Microsoft.AspNet.TestHost
var exception = await Assert.ThrowsAnyAsync<OperationCanceledException>(async () => await tcs.Task); var exception = await Assert.ThrowsAnyAsync<OperationCanceledException>(async () => await tcs.Task);
} }
[Fact] [ConditionalFact]
[FrameworkSkipCondition(RuntimeFrameworks.CoreCLR, SkipReason = "Hangs randomly (issue #422).")]
public async Task ClientCancellationAbortsRequest() public async Task ClientCancellationAbortsRequest()
{ {
// Arrange // Arrange

View File

@ -13,6 +13,7 @@ using Microsoft.AspNet.Hosting.Startup;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Features; using Microsoft.AspNet.Http.Features;
using Microsoft.AspNet.Http.Features.Internal; using Microsoft.AspNet.Http.Features.Internal;
using Microsoft.AspNet.Testing.xunit;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
@ -388,7 +389,8 @@ namespace Microsoft.AspNet.TestHost
await Assert.ThrowsAsync<ObjectDisposedException>(() => server.CreateClient().GetAsync("/")); await Assert.ThrowsAsync<ObjectDisposedException>(() => server.CreateClient().GetAsync("/"));
} }
[Fact] [ConditionalFact]
[FrameworkSkipCondition(RuntimeFrameworks.CoreCLR, SkipReason = "Hangs randomly (issue #422).")]
public void CancelAborts() public void CancelAborts()
{ {
TestServer server = TestServer.Create(app => TestServer server = TestServer.Create(app =>