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

[.net40] Some tests hangs because of httpListener is waiting for request #139

Open
jaasco opened this issue May 23, 2017 · 0 comments
Open

Comments

@jaasco
Copy link

jaasco commented May 23, 2017

Steps to reproduce:

  1. checkout net40 branch
  2. update nuget.exe to 4.1.0
    $ cd .nuget
    $ nuget.exe update -self
  3. run build.net40.bat

Expected results:
All test would be passed.

Actual results:
xunit.console.clr4.exe hangs when about 17-21 are passed.

In a Visual Studio I found that it hangs on several tests like:
NoErrorIsLoggedWhenHttpEndpointIsDisposed
HttpEndpointDoesNotThrowOnDispose
SecondCallToWithHttpEndportDoesNotThrow
HttpEndportLogsAnErrorIfPortIsOccupied
HttpEndpointDoesNotThrowIfPortIsOccupied
when after httpListener.GetContext() it starts to wait for request in a void ProcessRequests() thread in MetricsHttpListener class. When I send some GET request to appropriate URL the thread goes forward and the test passing well.
How should I pass all tests without sending the http requests by myself?

@jaasco jaasco changed the title [.net40] Some tests hangs becouse of httpListener waiting [.net40] Some tests hangs because of httpListener waiting May 23, 2017
@jaasco jaasco changed the title [.net40] Some tests hangs because of httpListener waiting [.net40] Some tests hangs because of httpListener is waiting for request May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant