Merge pull request #282 from Tragetaschen/linux-test-fix

Disable two tests failing on Mono
This commit is contained in:
David Fowler 2015-08-15 01:34:45 -07:00
commit b9e930038b
3 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Features;
using Microsoft.AspNet.Http.Internal;
using Microsoft.AspNet.Testing.xunit;
using Xunit;
namespace Microsoft.AspNet.TestHost
@ -221,7 +222,8 @@ namespace Microsoft.AspNet.TestHost
HttpCompletionOption.ResponseHeadersRead));
}
[Fact]
[ConditionalFact]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public async Task ExceptionAfterFirstWriteIsReported()
{
ManualResetEvent block = new ManualResetEvent(false);

View File

@ -1,13 +1,16 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Testing.xunit;
using Xunit;
namespace Microsoft.AspNet.TestHost
{
public class RequestBuilderTests
{
[Fact]
// c.f. https://github.com/mono/mono/pull/1832
[ConditionalFact]
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
public void AddRequestHeader()
{
var server = TestServer.Create(app => { });

View File

@ -1,5 +1,6 @@
{
"dependencies": {
"Microsoft.AspNet.Testing": "1.0.0-*",
"Microsoft.AspNet.TestHost": "1.0.0-*",
"xunit.runner.aspnet": "2.0.0-aspnet-*"
},