-
Notifications
You must be signed in to change notification settings - Fork 140
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: use avalanchego
new *test
packages
#620
Conversation
avalanchego
new validatorstest
packageavalanchego
new *test
packages
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 we also follow the same approach for testing packages in coreth?
changes LGTM
Yup. IMO there should never be test-helper code in production. The only reason I used tags at the beginning instead of doing this refactor was because they were a quick fix. |
* fix: use new `statetest` package from AvalancheGo * fix: use new `validatorstest` package from AvalancheGo * chore: stop using deprecated `validatorstest.TestState` * chore: bump `avalanchego` to commit with new test packages * fix: update all `avalanchego/.../*test` usage * fix: `scripts/versions.sh` in line with `go.mod`
Why this should be merged
avalanchego
was refactored and is already depending on one of the commits in this branch.How this works
Magic 🧙 Also Find and Replace, but mostly magic.
How this was tested
Existing tests