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

Fix validation in the tests to avoid modifying test cases #17

Merged
merged 3 commits into from
Jul 23, 2022

Conversation

0Tech
Copy link

@0Tech 0Tech commented Jul 22, 2022

No description provided.

Copy link
Owner

@ulbqb ulbqb left a comment

Choose a reason for hiding this comment

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

Would you like to reduce the differences from main in the following parts?

members: []foundation.Member{{
Address: addrs[1].String(),
Participating: true,
}},
},
"empty members": {
operator: addrs[0],
members: []foundation.Member{},
Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

These changes were added by accident. As you stated, the purpose of this PR is minimizing the differences. So I should apply these changes in another PR.

@@ -286,15 +280,14 @@ func TestMsgSubmitProposal(t *testing.T) {
valid: true,
},
"empty proposers": {
proposers: []sdk.AccAddress{},
Copy link
Owner

Choose a reason for hiding this comment

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

@@ -32,7 +32,6 @@ func TestMsgSend(t *testing.T) {
},
"empty from": {
contractID: "deadbeef",
from: sdk.AccAddress{},
Copy link
Owner

Choose a reason for hiding this comment

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

@@ -254,12 +246,10 @@ func TestMsgAuthorizeOperator(t *testing.T) {
},
"invalid holder": {
contractID: "deadbeef",
holder: sdk.AccAddress{},
operator: addrs[1],
},
"empty operator": {
holder: addrs[0],
Copy link
Owner

Choose a reason for hiding this comment

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

@ulbqb ulbqb merged commit 670fa27 into ulbqb:fix/issue578_squash Jul 23, 2022
@0Tech 0Tech deleted the fix/issue578_squash branch July 25, 2022 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants