Skip to content
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

Merged

Conversation

DanielSchiavini
Copy link
Contributor

@DanielSchiavini DanielSchiavini commented May 6, 2024

What I did

Changed expected tx_failed exception to be ExecutionReverted
Fixed tests that raised the more generic EvmError

Cute Animal Picture

image

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.95%. Comparing base (ace3789) to head (41061c3).

❗ Current head 41061c3 differs from pull request most recent head f5841c5. Consider uploading reports for the commit f5841c5 to get more accurate results

❗ 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.
📢 Have feedback on the report? Share it here.

@DanielSchiavini DanielSchiavini marked this pull request as ready for review May 6, 2024 08:46
Comment on lines +427 to +430
("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"),
Copy link
Member

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

Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charles-cooper charles-cooper changed the title refactor[test]: change expected exception type refactor[test]: change default expected exception typ May 6, 2024
@charles-cooper charles-cooper changed the title refactor[test]: change default expected exception typ refactor[test]: change default expected exception type May 6, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) May 6, 2024 21:06
@charles-cooper charles-cooper merged commit 5739624 into vyperlang:master May 6, 2024
149 checks passed
@DanielSchiavini DanielSchiavini deleted the refactor/ci-performance branch May 7, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants