quick lint while doing other prs (#13726)
This commit is contained in:
parent
97bd2ab792
commit
dc004c85f2
@ -185,7 +185,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupply() {
|
||||
initialSupply := res.GetSupply()
|
||||
|
||||
rapid.Check(suite.T(), func(t *rapid.T) {
|
||||
|
||||
numCoins := rapid.IntRange(1, 3).Draw(t, "num-count")
|
||||
coins := make(sdk.Coins, 0, numCoins)
|
||||
|
||||
@ -233,7 +232,6 @@ func (suite *DeterministicTestSuite) TestGRPCQueryTotalSupplyOf() {
|
||||
|
||||
req := &banktypes.QuerySupplyOfRequest{Denom: coin.GetDenom()}
|
||||
testdata.DeterministicIterations(suite.ctx, suite.Require(), req, suite.queryClient.SupplyOf, 0, true)
|
||||
|
||||
})
|
||||
|
||||
coin := sdk.NewCoin("bar", sdk.NewInt(100))
|
||||
|
||||
8
testutil/testdata/grpc_query.go
vendored
8
testutil/testdata/grpc_query.go
vendored
@ -12,11 +12,9 @@ import (
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
)
|
||||
|
||||
var (
|
||||
// iterCount defines the number of iterations to run on each query to test
|
||||
// determinism.
|
||||
iterCount = 1000
|
||||
)
|
||||
// iterCount defines the number of iterations to run on each query to test
|
||||
// determinism.
|
||||
var iterCount = 1000
|
||||
|
||||
type QueryImpl struct{}
|
||||
|
||||
|
||||
@ -7,8 +7,7 @@ import (
|
||||
"google.golang.org/protobuf/reflect/protoreflect"
|
||||
)
|
||||
|
||||
type stringValueRenderer struct {
|
||||
}
|
||||
type stringValueRenderer struct{}
|
||||
|
||||
// NewStringValueRenderer returns a ValueRenderer for protocol buffer string values.
|
||||
// It renders the string as-is without quotation.
|
||||
|
||||
@ -55,7 +55,8 @@ func (tx testTx) GetSignaturesV2() (res []txsigning.SignatureV2, err error) {
|
||||
res = append(res, txsigning.SignatureV2{
|
||||
PubKey: testPubKey{address: tx.address},
|
||||
Data: nil,
|
||||
Sequence: tx.nonce})
|
||||
Sequence: tx.nonce,
|
||||
})
|
||||
|
||||
return res, nil
|
||||
}
|
||||
|
||||
@ -119,7 +119,6 @@ func TestMigrateStore(t *testing.T) {
|
||||
// Check if proposal 2 is in the new store but not proposal 1
|
||||
require.Nil(t, store.Get(v4.VotingPeriodProposalKey(proposal1.Id)))
|
||||
require.Equal(t, []byte{0x1}, store.Get(v4.VotingPeriodProposalKey(proposal2.Id)))
|
||||
|
||||
}
|
||||
|
||||
func getTestProposal() []sdk.Msg {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user