Skip to content

Commit

Permalink
chore: do not use cache context; it's not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
hallazzang committed Nov 3, 2021
1 parent 4a06775 commit 47adc3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/farming/keeper/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,7 @@ func (suite *KeeperTestSuite) TestGRPCRewards() {
nil,
},
} {
cacheCtx, _ := suite.ctx.CacheContext() // TODO: can we omit the 'cached' context?
resp, err := suite.querier.Rewards(sdk.WrapSDKContext(cacheCtx), tc.req)
resp, err := suite.querier.Rewards(sdk.WrapSDKContext(suite.ctx), tc.req)
if tc.expectErr {
suite.Require().Error(err)
} else {
Expand Down

0 comments on commit 47adc3f

Please sign in to comment.