-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make fail use correct attribute name
The prior change incorrectly made `_fail` look for the `env._failures` attribute, when it is actually called `env.failures` This went unnoticed because all the tests mock out the fail call (if they didn't, then tests checking for expected failures would fail). To work around this, add a test that calls the real failure function to exercise the real code path. The test clears the list of failures prior to the test finishing to prevent the expected failure from failing the entire test. PiperOrigin-RevId: 515520183
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
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