-
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
style: remove unused code in tests #5108
Conversation
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.
lgtm!
pathBA *ibctesting.Path | ||
pathCA *ibctesting.Path | ||
pathCB *ibctesting.Path |
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.
imo it might make sense to leave these, just in case they might be useful in the future
tests/e2e/e2e_setup_test.go
Outdated
// Environment variable name to skip state sync testing | ||
skipStateSyncEnv = "OSMOSIS_E2E_SKIP_STATE_SYNC" |
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.
This is being used here, we should restore this:
Line 1334 in 6e1b7a7
if s.skipStateSync { |
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.
hmmmm I thought it was used. Any idea how toget one's editor to see that? Or ci for that matter?
basically I made that particular change, cause I noticed that doing so did not cause anything else to break. Adding er back now.
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.
aha! env vars for e2e -- this explains what I saw....
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.
Ahh I see now. I think this was intended to be used in place of the hardcoded value here:
osmosis/tests/e2e/e2e_setup_test.go
Line 87 in 7cc0090
if str := os.Getenv("OSMOSIS_E2E_SKIP_STATE_SYNC"); len(str) > 0 { |
but was never replaced. So your editor was correct to catch this as unused
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 going to block this PR on this change but we can replace the hardcoded value with skipStateSyncEnv
in the future.
Thanks @faddat
* unused code in tests * re-add skip state sync (cherry picked from commit 7ec4c2f) # Conflicts: # tests/ibc-hooks/ibc_middleware_test.go # x/concentrated-liquidity/fees_test.go # x/concentrated-liquidity/incentives_test.go # x/concentrated-liquidity/lp_test.go # x/concentrated-liquidity/position_test.go # x/concentrated-liquidity/store_test.go # x/gamm/keeper/pool_service_test.go # x/poolmanager/types/routes_test.go # x/superfluid/keeper/migrate_test.go # x/superfluid/keeper/unpool_test.go # x/twap/listeners_test.go
* unused code in tests * re-add skip state sync
Closes: #XXX
What is the purpose of the change
This PR removes unused code in tests.
Brief Changelog
Testing and Verifying
This change is a trivial rework / code cleanup without any test coverage.
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no