diff --git a/x/authz/client/testutil/query.go b/x/authz/client/testutil/query.go index 4018e8ce5c..81cb70baad 100644 --- a/x/authz/client/testutil/query.go +++ b/x/authz/client/testutil/query.go @@ -17,7 +17,7 @@ import ( func (s *IntegrationTestSuite) TestQueryAuthorizations() { val := s.network.Validators[0] - grantee := s.grantee + grantee := s.grantee[0] twoHours := time.Now().Add(time.Minute * time.Duration(120)).Unix() _, err := ExecGrant( @@ -95,7 +95,7 @@ func (s *IntegrationTestSuite) TestQueryAuthorizations() { func (s *IntegrationTestSuite) TestQueryAuthorization() { val := s.network.Validators[0] - grantee := s.grantee + grantee := s.grantee[0] twoHours := time.Now().Add(time.Minute * time.Duration(120)).Unix() _, err := ExecGrant( diff --git a/x/mint/client/testutil/grpc.go b/x/mint/client/testutil/grpc.go index ae3503264d..a1d2949d38 100644 --- a/x/mint/client/testutil/grpc.go +++ b/x/mint/client/testutil/grpc.go @@ -29,7 +29,7 @@ func (s *IntegrationTestSuite) TestQueryGRPC() { &minttypes.QueryParamsResponse{}, &minttypes.QueryParamsResponse{ Params: minttypes.NewParams("stake", sdk.NewDecWithPrec(13, 2), sdk.NewDecWithPrec(100, 2), - sdk.NewDec(1), sdk.NewDecWithPrec(67, 2), (60 * 60 * 8766 / 5)), + sdk.NewDec(1), sdk.NewDecWithPrec(67, 2), 60*60*8766/5), }, }, { @@ -54,6 +54,7 @@ func (s *IntegrationTestSuite) TestQueryGRPC() { }, } for _, tc := range testCases { + tc := tc resp, err := testutil.GetRequestWithHeaders(tc.url, tc.headers) s.Run(tc.name, func() { s.Require().NoError(err)