-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
refactor: migrate e2e/evidence
away from testify suite
#14553
Conversation
e2e/evidence
away from testify suite
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.
Noice
s.network.Cleanup() | ||
} | ||
|
||
func (s *E2ETestSuite) TestGetQueryCmd() { |
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.
This one
e2e/evidence
away from testify suitee2e/evidence
away from testify suite
4ac6500
to
7df36d2
Compare
tests/e2e/evidence/cli_test.go
Outdated
if tc.expectErr { | ||
s.Require().Error(err) | ||
} else { | ||
s.Require().NoError(err) |
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.
s.Require().NoError(err) | |
assert.NilError(t, err) |
These should still be migrated.
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.
+1
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.
pending julien's comment #14553 (comment)
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.
few missing things.
tests/e2e/evidence/cli_test.go
Outdated
f := initFixture(t) | ||
defer f.network.Cleanup() | ||
|
||
val := s.network.Validators[0] |
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.
val := s.network.Validators[0] | |
val := f.network.Validators[0] |
tests/e2e/evidence/cli_test.go
Outdated
for name, tc := range testCases { | ||
tc := tc | ||
|
||
s.Run(name, func(t *testing.T) { |
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.
s.Run(name, func(t *testing.T) { | |
t.Run(name, func(t *testing.T) { |
tests/e2e/evidence/cli_test.go
Outdated
|
||
out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args) | ||
if tc.expectErr { | ||
s.Require().Error(err) |
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.
use assert
tests/e2e/evidence/cli_test.go
Outdated
s.Require().NoError(err) | ||
} | ||
|
||
s.Require().Contains(strings.TrimSpace(out.String()), tc.expectedOutput) |
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.
replace with assert
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.
lgtm, one nit
[Cosmos SDK] Kudos, SonarCloud Quality Gate passed! |
Description
Closes: #14548
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change