Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop and Core behavior differences in System.Net.Requests #20873

Closed
davidsh opened this issue Apr 3, 2017 · 0 comments
Closed

Desktop and Core behavior differences in System.Net.Requests #20873

davidsh opened this issue Apr 3, 2017 · 0 comments
Assignees
Labels
area-System.Net bug test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Milestone

Comments

@davidsh
Copy link
Contributor

davidsh commented Apr 3, 2017

There are some differences in behavior between .NET Framework (Desktop) and .NET Core which are causing these tests to fail:

xUnit.net Console Runner (64-bit .NET 4.0.30319.42000)
Discovering: System.Net.Requests.Tests
Discovered: System.Net.Requests.Tests
Starting: System.Net.Requests.Tests
System.Net.Tests.HttpWebRequestHeaderTest.Ctor_VerifyHttpRequestDefaults(remoteServer: http://corefx-net.cloudapp.net/Echo.ashx) [FAIL]
Assert.Equal() Failure
Expected: 0
Actual: 64
Stack Trace:
s:\GitHub\corefx\src\System.Net.Requests\tests\HttpWebRequestHeaderTest.cs(32,0): at System.Net.Tests.HttpWebRequestHeaderTest.Ctor_VerifyHttpRequest
Defaults(Uri remoteServer)
System.Net.Tests.HttpWebRequestHeaderTest.HttpWebRequest_ServicePoint_Throws(remoteServer: http://corefx-net.cloudapp.net/Echo.ashx) [FAIL]
Assert.Throws() Failure
Expected: typeof(System.PlatformNotSupportedException)
Actual: (No exception was thrown)
Stack Trace:
s:\GitHub\corefx\src\System.Net.Requests\tests\HttpWebRequestHeaderTest.cs(81,0): at System.Net.Tests.HttpWebRequestHeaderTest.HttpWebRequest_Service
Point_Throws(Uri remoteServer)
System.Net.Tests.HttpWebRequestHeaderTest.HttpWebRequest_ServicePoint_Throws(remoteServer: https://corefx-net.cloudapp.net/Echo.ashx) [FAIL]
Assert.Throws() Failure
Expected: typeof(System.PlatformNotSupportedException)
Actual: (No exception was thrown)
Stack Trace:
s:\GitHub\corefx\src\System.Net.Requests\tests\HttpWebRequestHeaderTest.cs(81,0): at System.Net.Tests.HttpWebRequestHeaderTest.HttpWebRequest_Service
Point_Throws(Uri remoteServer)
System.Net.Tests.HttpWebResponseHeaderTest.HttpWebResponse_Close_Success [FAIL]
Assert.Throws() Failure
Expected: typeof(System.ObjectDisposedException)
Actual: (No exception was thrown)

@davidsh davidsh self-assigned this Apr 21, 2017
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net bug test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Projects
None yet
Development

No branches or pull requests

2 participants