Repository navigation
mute unit tests that depend on the network - #5188
Merged
Merged
Conversation
iAmWillShepherd
approved these changes
Jul 18, 2018
iAmWillShepherd
left a comment
Contributor
There was a problem hiding this comment.
Perhaps we can move these types of test to our integration test folder in the future?
Member
Author
I'd rather just emulate the API behaviour in code and avoid having to ship valid credentials that CI and contributors can use when running the tests |
This was referenced Jul 18, 2018
Member
Author
|
#jolo because it's now occurring to many PRs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In my eagerness to merge #5149 I overlooked that some of these tests depend on
canAccessRepository- which actually hits the GitHub API.desktop/app/src/lib/find-account.ts
Lines 10 to 22 in 56b1fe7
I had some failing tests in #5187 which were unrelated to the change:
What I believe is happening is the GitHub API is rate-limiting the CI agents IP addresses, which means these tests fail incorrectly, and are not actually unit tests in the classic sense.
I'm going to mute all these tests for now with a note because I think we discussed this a bit in #4362 which is still in progress.