-
Notifications
You must be signed in to change notification settings - Fork 636
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
e2e: conditionally querying total escrow based on release version #3655
e2e: conditionally querying total escrow based on release version #3655
Conversation
@@ -64,13 +63,6 @@ const ( | |||
icadBinary = "icad" | |||
) | |||
|
|||
// icadNewGenesisCommandsFeatureReleases represents the releases of icad using the new genesis commands. |
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.
I moved this already in this PR to testvalues
.
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! Few small nits but I am happy with it as is if you don't think they're worth addressing 👍
@@ -402,8 +394,8 @@ func getGenesisModificationFunction(cc ChainConfig) func(ibc.ChainConfig, []byte | |||
binary := cc.Binary | |||
version := cc.Tag | |||
|
|||
doesSimdSupportGovv1Genesis := binary == defaultBinary && govGenesisFeatureReleases.IsSupported(version) | |||
doesIcadSupportGovv1Genesis := icadGovGenesisFeatureReleases.IsSupported(version) | |||
doesSimdSupportGovv1Genesis := binary == defaultBinary && testvalues.GovGenesisFeatureReleases.IsSupported(version) |
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.
mega nit, I find using does
in the name is confusing, to me it is more readable with a name like simdSupportsGovV1Genesis
(statement rather than question)
I know this wasn't introduced in this PR so I don't feel too strongly about it.
actualTotalEscrow, err := s.QueryTotalEscrowForDenom(ctx, chainA, chainADenom) | ||
s.Require().NoError(err) | ||
s.Require().Equal(sdk.NewCoin(chainADenom, sdk.NewInt(0)), actualTotalEscrow) // total escrow is zero because tokens have come back | ||
if testvalues.TotalEscrowFeatureReleases.IsSupported(chainAVersion) { |
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.
should the t.Run be put within the conditional? As it currently is this will be an empty test
Description
closes: #XXXX
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.