Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[supply] add new SUPPLY_UPLOAD_MAX_RETRIES env var to attempt to solv…
…e failed Google API calls (#21518) * [supply] add new SUPPLY_UPLOAD_MAX_RETRIES env var to attempt to solve failed Google API calls * Rewrite expectation to ensure SUT is interrupted by raised error Otherwise if we just `expect(UI).to receive(:user_error!).with(…)` that will mock the `UI.user_error` call in the method being tested... and thus not make it `raise` anymore, which the rest of the implementation of that method will continue executing when run in the context of mocked tests while it would not in the real world, which means we would be testing a different behavior of the method --------- Co-authored-by: Olivier Halligon <olivier@halligon.net>
- Loading branch information
1 parent
271f2d5
commit 3bbbebd
Showing
2 changed files
with
46 additions
and
14 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