-
Notifications
You must be signed in to change notification settings - Fork 252
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
Tests should avoid real HTTP URLs #10393
Comments
My PR comments were basically "don't write tests that use real URLs/HTTP requests". When dotnet.myget.org was decomissioned, we had tests break (I don't know if it was these tests, or different ones), which broke our builds and our ability to merge PRs, until we fixed it. In the last 2 weeks, we've had a test that makes requests to nuget.smbsrc.net (unrelated to codespaces) occasionally timeout, again breaking our builds. So, on one hand yes, I still believe that we should change tests that make real HTTP requests to use mocked HTTP tests (or a fake HTTP source running on localhost). On the other hand, we can deal with these types or errors and flakiness when it causes problems, rather than being proactive about it. But I still wish people would stop writing/copying tests that make real HTTP requests to remote servers. |
Is this relevant? |
Unless you have information otherwise, I believe my comments in #10393 (comment) stands. |
The text was updated successfully, but these errors were encountered: