-
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
chore: Replace testify with gotest.tools in staking integration tests #14504
chore: Replace testify with gotest.tools in staking integration tests #14504
Conversation
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
…ita/replace-testify-staking-integration-tests
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 question.
Thanks for the removal of simapp where it was possible!
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.
Mostly lgtm
…ita/replace-testify-staking-integration-tests
@@ -5,23 +5,17 @@ import ( | |||
"time" | |||
|
|||
"cosmossdk.io/math" | |||
"github.com/stretchr/testify/suite" | |||
"github.com/stretchr/testify/require" |
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.
Are we still using require
here? Is this intended?
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.
yes, require
is needed in DeterministicIterations
function from testdata package.
We can leave this as of now.
I'll be creating a follow-up PR which removes testify usage testdata
package which will eventually end up cleaning testify in tests/integration
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.
As I see, there are very less number (mostly 3 to 4) of usages of require in testdata
package. Maybe they can be included in this PR. wdyt?
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.
I've already created one: #14575
…ita/replace-testify-staking-integration-tests
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.
These changes may resolve failing CI.
thanks @atheeshp, these suggestions helped. |
…ita/replace-testify-staking-integration-tests
[Cosmos SDK] Kudos, SonarCloud Quality Gate passed! |
Description
Closes: #14503
ref: #14145 #12332
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