-
Notifications
You must be signed in to change notification settings - Fork 715
chore: add consensus tests for MemoryBalanceExceeded
#6642
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
base: develop
Are you sure you want to change the base?
chore: add consensus tests for MemoryBalanceExceeded
#6642
Conversation
MemoryExceededErrorMemoryBalanceExceeded
| /// - 20 transactions that call the contract (should fail with MemoryBalanceExceeded) | ||
| /// - 1 transaction that is expected to succeed | ||
| #[test] | ||
| fn test_memory_balance_exceeded_multiple_calls() { |
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.
qq: shouldn't we rely on insta for all the consensus test?
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.
Yeah, the idea is that this in particular is not meant to be a consensus test but a more classic "integration test", I just used the new framework for it. But good thing you brought it up because this doesn't belong in here.
When we are going to merge your PR that makes the symbols public and ready to be used in other files, I'll move it somewhere else.
|
|
||
| // Tests that `MemoryBalanceExceeded` error occurs during a contract call. | ||
| // The transaction will fail but will still be committed to the block. | ||
|
|
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.
Nit. Should remove this empty line.
Description
Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yamlandrpc-endpoints.mdfor v2 endpoints,event-dispatcher.mdfor new events)clarity-benchmarkingrepo