Skip to content

Commit

Permalink
tests: reset suite in grpc_query tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Jun 13, 2024
1 parent 0d35371 commit 01baffa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/gov/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryDeposit() {
}

func (suite *KeeperTestSuite) TestLegacyGRPCQueryDeposit() {
suite.reset()
ctx, queryClient, addrs := suite.ctx, suite.legacyQueryClient, suite.addrs

var (
Expand Down Expand Up @@ -1325,7 +1326,7 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryDeposits() {
"create a proposal and get deposits",
func() {
var err error
proposal, err = suite.govKeeper.SubmitProposal(ctx, TestProposal, "", "test", "summary", addrs[0], true)
proposal, err = suite.govKeeper.SubmitProposal(ctx, TestProposal, "", "test", "summary", addrs[0], false)
suite.Require().NoError(err)

req = &v1beta1.QueryDepositsRequest{
Expand Down Expand Up @@ -1365,7 +1366,7 @@ func (suite *KeeperTestSuite) TestLegacyGRPCQueryDeposits() {
suite.Run(fmt.Sprintf("Case %s", testCase.msg), func() {
testCase.malleate()

deposits, err := queryClient.Deposits(ctx, req)
deposits, err := queryClient.Deposits(gocontext.Background(), req)

if testCase.expPass {
suite.Require().NoError(err)
Expand Down

0 comments on commit 01baffa

Please sign in to comment.