Skip to content

Commit

Permalink
fix leftover test
Browse files Browse the repository at this point in the history
  • Loading branch information
testinginprod committed Sep 17, 2024
1 parent 4ac3aa8 commit 9280c12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/auth/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"math"
"sort"

"github.com/cosmos/gogoproto/proto"

"github.com/cosmos/cosmos-sdk/testutil/testdata"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/gogoproto/proto"
"github.com/golang/mock/gomock"
)

const addrStr = "cosmos13c3d4wq2t22dl0dstraf8jc3f902e3fsy9n3wv"
Expand Down Expand Up @@ -110,6 +110,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccount() {
"account not found",
func() {
req = &types.QueryAccountRequest{Address: addr.String()}

},
false,
func(res *types.QueryAccountResponse) {},
Expand All @@ -135,6 +136,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccount() {
for _, tc := range testCases {
suite.Run(fmt.Sprintf("Case %s", tc.msg), func() {
suite.SetupTest() // reset
suite.acctsModKeeper.EXPECT().IsAccountsModuleAccount(gomock.Any(), gomock.Any()).Return(false).AnyTimes()

tc.malleate()
res, err := suite.queryClient.Account(suite.ctx, req)
Expand Down

0 comments on commit 9280c12

Please sign in to comment.