diff options
author | Santiago Fernandez Madero <safern@microsoft.com> | 2017-03-10 04:50:36 +0300 |
---|---|---|
committer | Dan Moseley <danmose@microsoft.com> | 2017-03-10 04:50:36 +0300 |
commit | b2e442f43de7bc05c14dd9abb963d40f81e79957 (patch) | |
tree | 87a6a799fd82cf494f2829608d7db943d1a92829 /src/System.Net.Requests | |
parent | 0e8f11a3a8551a97ad992c08434cd5b4cec0cc2d (diff) |
Disable tests on desktop that where hanging. (#16942)
* Disable failing tests
* Disable hanging tests to keep track of them
* Marked Hanging tests as skip on netfx
* Skip another test that hangs
* Skip hanging test in System.Queryable.Tests
* Disable Linq.Queryable hanging test
* Disable System.Net.Request tests that where hanging
* Add related issue to skip attribute in System.Pipe.IO tests
* Cleanup
Diffstat (limited to 'src/System.Net.Requests')
-rw-r--r-- | src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs | 1 | ||||
-rw-r--r-- | src/System.Net.Requests/tests/HttpWebRequestTest.cs | 11 | ||||
-rw-r--r-- | src/System.Net.Requests/tests/RequestStreamTest.cs | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs b/src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs index 513b6ca4c2..bdcd81ab71 100644 --- a/src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs +++ b/src/System.Net.Requests/tests/HttpWebRequestHeaderTest.cs @@ -193,6 +193,7 @@ namespace System.Net.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hangs in desktop. public void HttpWebRequest_PreAuthenticateGetSet_Ok() { HttpWebRequest request = WebRequest.CreateHttp(Configuration.Http.RemoteEchoServer); diff --git a/src/System.Net.Requests/tests/HttpWebRequestTest.cs b/src/System.Net.Requests/tests/HttpWebRequestTest.cs index 9cb563a5c0..948798dd7e 100644 --- a/src/System.Net.Requests/tests/HttpWebRequestTest.cs +++ b/src/System.Net.Requests/tests/HttpWebRequestTest.cs @@ -242,6 +242,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public void BeginGetRequestStream_CreatePostRequestThenCallTwice_ThrowsInvalidOperationException(Uri remoteServer) { _savedHttpWebRequest = HttpWebRequest.CreateHttp(remoteServer); @@ -255,6 +256,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public void BeginGetRequestStream_CreateRequestThenBeginGetResponsePrior_ThrowsInvalidOperationException(Uri remoteServer) { _savedHttpWebRequest = HttpWebRequest.CreateHttp(remoteServer); @@ -267,6 +269,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public void BeginGetResponse_CreateRequestThenCallTwice_ThrowsInvalidOperationException(Uri remoteServer) { _savedHttpWebRequest = HttpWebRequest.CreateHttp(remoteServer); @@ -279,6 +282,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public void BeginGetResponse_CreatePostRequestThenAbort_ThrowsWebException(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -289,6 +293,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task GetRequestStreamAsync_WriteAndDisposeRequestStreamThenOpenRequestStream_ThrowsArgumentException(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -305,6 +310,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task GetRequestStreamAsync_SetPOSTThenGet_ExpectNotNull(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -314,6 +320,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task GetResponseAsync_GetResponseStream_ExpectNotNull(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -358,6 +365,7 @@ namespace System.Net.Tests [ConditionalTheory(nameof(PlatformDetection) + "." + nameof(PlatformDetection.IsNotFedoraOrRedHatOrCentos))] // #16201 [MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task GetResponseAsync_UseDefaultCredentials_ExpectSuccess(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -392,6 +400,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task HaveResponse_GetResponseAsync_ExpectTrue(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -401,6 +410,7 @@ namespace System.Net.Tests [ConditionalTheory(nameof(PlatformDetection) + "." + nameof(PlatformDetection.IsNotFedoraOrRedHatOrCentos))] // #16201 [MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task Headers_GetResponseHeaders_ContainsExpectedValue(Uri remoteServer) { HttpWebRequest request = WebRequest.CreateHttp(remoteServer); @@ -456,6 +466,7 @@ namespace System.Net.Tests } [Theory, MemberData(nameof(EchoServers))] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public async Task SimpleScenario_UseGETVerb_Success(Uri remoteServer) { HttpWebRequest request = HttpWebRequest.CreateHttp(remoteServer); diff --git a/src/System.Net.Requests/tests/RequestStreamTest.cs b/src/System.Net.Requests/tests/RequestStreamTest.cs index 66e6587489..527aa75328 100644 --- a/src/System.Net.Requests/tests/RequestStreamTest.cs +++ b/src/System.Net.Requests/tests/RequestStreamTest.cs @@ -11,6 +11,7 @@ using Xunit; namespace System.Net.Tests { + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "dotnet/corefx #16928")] //Test hang forever in desktop. public class RequestStreamTest { readonly byte[] buffer = new byte[1]; |