-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Mock redirection logic for tests #4197
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pmeier , looks good, I'm trying to see if we could simplify things a bit :)
BTW now that these tests don't require an internet connection, we can take them away from this file and put back where they were prior to #4032 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
Summary: * mock out redirect behavior for testing * revert unrelated change * simplify * move tests out of internet tests * replace urls with dummys * improve checking of mock calls Reviewed By: fmassa Differential Revision: D29932698 fbshipit-source-id: b7d87bc50407e7916d6f4f87bd0cbcd2a8db2214
Fixes recent CI failures like this. Two of our tests depend on the Caltech servers, which are down for some days #4188. This PR removes the dependency and mocks out the redirection behavior.