-
Notifications
You must be signed in to change notification settings - Fork 115
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
fix: move btc std memo tests to advanced tests #3049
Conversation
📝 WalkthroughWalkthroughThe pull request modifies the Changes
Possibly related PRs
Suggested reviewers
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
|
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.
Why would we move standard tests to the advanced tests category?
check PR description, so they are not run before upgrade as it makes upgrade tests failing |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
cmd/zetae2e/local/local.go (1)
Line range hint
1-577
: Consider refactoring the test setup and execution logic.The
localE2ETest
function is quite large and handles multiple responsibilities. Consider breaking it down into smaller, focused functions for better maintainability:
- Test configuration setup
- Network setup
- Test suite organization
- Test execution orchestration
Example refactor for test suite organization:
type TestSuite struct { Basic []string Advanced []string } func newBitcoinTestSuite() TestSuite { return TestSuite{ Basic: []string{ e2etests.TestBitcoinDonationName, e2etests.TestBitcoinDepositName, // ... other basic tests }, Advanced: []string{ e2etests.TestBitcoinWithdrawTaprootName, e2etests.TestBitcoinStdMemoDepositName, // ... other advanced tests }, } } func (s TestSuite) All() []string { return append(s.Basic, s.Advanced...) }This would make the test organization more maintainable and easier to modify in the future.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- cmd/zetae2e/local/local.go (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
cmd/zetae2e/local/local.go (1)
Pattern
**/*.go
: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
🔇 Additional comments (1)
cmd/zetae2e/local/local.go (1)
317-320
: LGTM: Bitcoin standard memo deposit tests correctly moved to advanced tests.The relocation of these tests aligns with the PR objective and ensures they won't be executed before an upgrade.
Description
Move bitcoin std tests to advanced so they are not run before upgrade
How Has This Been Tested?
Summary by CodeRabbit
Bug Fixes
Documentation