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

(tests): e2e test for failed forwarding #6876

Merged
merged 7 commits into from
Jul 19, 2024
Merged

Conversation

bznein
Copy link
Contributor

@bznein bznein commented Jul 18, 2024

Description

ref: #6578


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.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Great work! LGTM

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank you, @bznein. I think there is an error on the denomination used to query the balance on chain B and C...


s.Require().NoError(test.WaitForBlocks(ctx, 1, chainA, chainB), "failed to wait for blocks")

chainBstartingBalance, err := testsuite.GetChainBalanceForDenom(ctx, chainB, chainADenom, chainBWallet)
Copy link
Contributor

Choose a reason for hiding this comment

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

Usage of chainADenom here and for the balance on chain C is not correct, right? We should be using the IBC denom con chain B and C respectively, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're absolutely right, I'll fix this, thanks for catching it!

})

t.Run("balances for B and C have not changed", func(t *testing.T) {
chainBBalance, err := testsuite.GetChainBalanceForDenom(ctx, chainB, chainADenom, chainBWallet)
Copy link
Contributor

Choose a reason for hiding this comment

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

chainADenom here an below should also be the IBC denoms on each chain.

@bznein
Copy link
Contributor Author

bznein commented Jul 19, 2024

Thank you, @bznein. I think there is an error on the denomination used to query the balance on chain B and C...

Thanks Carlos for spotting this, would you mind taking another look? I'm still not entirely sure how to compose the right denom in E2E tests, so pleaes let me know if this seems right :)

Copy link

sonarcloud bot commented Jul 19, 2024

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

The fix looks correct to me. Thank you for quickly fixing it, @bznein!

@crodriguezvega crodriguezvega added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit de0a11e Jul 19, 2024
70 of 71 checks passed
@crodriguezvega crodriguezvega deleted the bznein/6578/failedacktest branch July 19, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants