-
Notifications
You must be signed in to change notification settings - Fork 399
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(amino): panic when registering types with the same name #2325
Conversation
Trying to address an ancien line in amino: XXX Test registering duplicate names or concrete types not in a package. Unfortunately one of them fails to panic: the problem is names aren't tested in `WithTypes()` The failing test is commented out for now
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
Hello @grepsuzette . I do the following to clone your branch, merge master and run tests.
It prints the test failure:
|
I don't know what went on there, @jefft0, but it seems to work now. Anyway I fixed the bug involved with the text. Approving this PR, looking for another approval. |
Removed the |
This PR is stale because it has been open 3 months with no activity. Remove stale label or comment or this will be closed in 3 months. |
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
This adds some doc and tests to
tm2/pkg/amino
to address the following in amino_test.go:fixed #2326
// XXX Test registering duplicate names or concrete types not in a package.
To run tests
Tests have uncovered a potential bug however in
TestDupNamesMustPanic
.Opening an issue now to document this, with a possible fix.
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description