-
-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetchActions tests: Test retry logic with a more representative error.
The fact that this test (before this commit) was passing isn't good -- it means a basically arbitrary, unexpected kind of error will let the retry loop continue without propagating to `tryFetch`'s caller. Instead, if something unexpected like that happens, we should fail early (and stop wasting the user's time) by breaking out of the retry loop and having the error propagate to the caller. We plan to fix that in a later series of commits, and add a test case with an error like that. But for now, test that we get the right behavior with representative inputs.
- Loading branch information
1 parent
c7c696e
commit 9f54560
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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