-
Notifications
You must be signed in to change notification settings - Fork 235
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
async calls to HTTP clients #77
Conversation
Hi @szybkiwx
Leave it with me and I will hopefully get some time tonight to have a play. |
@szybkiwx I made a change, which should hopefully fix the xunit 2 issues. To install use Let me know how you go, then we can move onto the other parts of the PR. |
Hi @neilcampbell, that was quick:) Unfortunatelly your fix from |
Thanks @szybkiwx, awesome stuff! With regards to passing the task all the way back to the consumer, I do agree however my goal here was to hide the internal workings of those methods, as in the future we may not use a HTTP (or any async) call to setup the mock interactions. The early version of the library actually didn't. |
Hi, sorry for late answear, been quite busy recently. Unfortunately that didn't work as expected but I still need some time to dig into it. |
No worries @szybkiwx! Keep me posted with how you go! |
We started using your library some time ago, but recently we met the problem described here http://stackoverflow.com/questions/32005912/running-xunit-tests-on-teamcity-using-async-methods
Our XUnit2 test when running in parallel (default option) falls into deadlocks on some automated build agents (it's very hard to reproduce in local environments).
This pull request reflects the changes we made to the library to utilize async methods of HttpClient properly and get rid of a problem: