-
-
Notifications
You must be signed in to change notification settings - Fork 823
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
refactor[test]: change default expected exception type #4004
refactor[test]: change default expected exception type #4004
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4004 +/- ##
==========================================
- Coverage 90.89% 87.95% -2.94%
==========================================
Files 103 103
Lines 14914 14914
Branches 3306 3306
==========================================
- Hits 13556 13118 -438
- Misses 937 1299 +362
- Partials 421 497 +76 ☔ View full report in Codecov by Sentry. |
41061c3
to
390a92d
Compare
("DynArray[uint256, 3]", "uint256", b"", ExecutionReverted, ""), | ||
("DynArray[uint256, 3]", "uint256", b"\x01" * 128, EvmError, "OUT_OF_GAS_ERROR"), | ||
("Bytes[5]", "address", b"", ExecutionReverted, ""), | ||
("Bytes[5]", "address", b"\x01" * 128, EvmError, "OUT_OF_GAS_ERROR"), |
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.
out of scope but these should really all be ExecutionReverted actually; it should be fixed by #3925
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.
not a huge fan of the dynamic lookup in https://github.com/vyperlang/vyper/pull/4004/files#diff-cb5228f23a8a9317e7de9bc3780d62cdfd69bb2655261be60e55143a874615f4R445 but besides that it looks good
What I did
Changed expected tx_failed exception to be
ExecutionReverted
Fixed tests that raised the more generic
EvmError
Cute Animal Picture