-
Notifications
You must be signed in to change notification settings - Fork 607
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
test/devux: helper function for assertions conditional on panics #1964
Conversation
We could use something similar for
If this is something that we should add. Please let me know and i can add it in this PR :) |
Thanks for adding this! Would recommend we don't do this for expect pass atm |
Thank you @ValarDragon! Resolved your comments |
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.
Logic and feature LGTM!
I'd prefer creating a new file test_helpers.go
in osmo utils instead of having the method within cli_helpers
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.
Sweet, LGTM once Matt's suggestion to move to a different file is addressed
Addressed all the comments. Good to go! |
* test: helper function for assertions conditional on panics * added devs comments * matts comment (cherry picked from commit 298d7cf) # Conflicts: # x/gamm/pool-models/balancer/pool_suite_test.go # x/mint/keeper/genesis_test.go
Closes: #1946
What is the purpose of the change
Adds a helper function for conditioning on Panics
Realized that there is already a helper function in
x/gamm/pool-models/balancer/util_test.go
so i just moved that underosmoutils
Brief Changelog
n/a
Testing and Verifying
n/a
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (no)x/<module>/spec/
) / Osmosis docs repo / not documented)