fix(e2e): use new ErrorMessageRevert field in test#3441
Conversation
📝 WalkthroughWalkthroughThe pull request introduces a modification to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
9cf6fc4 to
1d5d225
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
e2e/e2etests/test_solana_deposit_and_call_revert_with_dust.go (1)
33-36: LGTM! The updated error message assertion looks good.The change correctly uses the new
ErrorMessageRevertfield and the multi-line format improves readability.Consider extracting the error message comparison into a helper function for better reusability and maintainability:
+func assertContainsErrorMessage(t require.TestingT, status crosschaintypes.Status, expectedError error) { + require.True(t, strings.Contains(status.ErrorMessageRevert, expectedError.Error())) +} func TestSolanaDepositAndCallRevertWithDust(r *runner.E2ERunner, args []string) { // ... existing code ... - require.True( - r, - strings.Contains(cctx.CctxStatus.ErrorMessageRevert, crosschaintypes.ErrInvalidWithdrawalAmount.Error()), - ) + assertContainsErrorMessage(r, cctx.CctxStatus, crosschaintypes.ErrInvalidWithdrawalAmount) }
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
e2e/e2etests/test_solana_deposit_and_call_revert_with_dust.go(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
e2e/e2etests/test_solana_deposit_and_call_revert_with_dust.go (1)
Pattern **/*.go: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: start-solana-test / e2e
- GitHub Check: start-e2e-test / e2e
- GitHub Check: build-and-test
- GitHub Check: Analyze (go)
Revert error message field was added in #3326 but this solana test was not updated.
Summary by CodeRabbit