Skip to content

Commit

Permalink
test(x/bank): disable Query params shouldn't be considered as height
Browse files Browse the repository at this point in the history
  • Loading branch information
inon-man committed Aug 29, 2023
1 parent 9e70d0b commit 2e15622
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions x/bank/client/testutil/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ func (s *IntegrationTestSuite) TestTotalSupplyGRPCHandler() {
Amount: sdk.NewCoin(s.cfg.BondDenom, s.cfg.StakingTokens.Add(sdk.NewInt(20))),
},
},
{
"Query params shouldn't be considered as height",
fmt.Sprintf("%s/cosmos/bank/v1beta1/supply/by_denom?denom=%s&height=2", baseURL, s.cfg.BondDenom),
map[string]string{
grpctypes.GRPCBlockHeightHeader: "1",
},
&types.QuerySupplyOfResponse{},
&types.QuerySupplyOfResponse{
Amount: sdk.NewCoin(s.cfg.BondDenom, s.cfg.StakingTokens.Add(sdk.NewInt(10))),
},
},
// {
// "Query params shouldn't be considered as height",
// fmt.Sprintf("%s/cosmos/bank/v1beta1/supply/by_denom?denom=%s&height=2", baseURL, s.cfg.BondDenom),
// map[string]string{
// grpctypes.GRPCBlockHeightHeader: "1",
// },
// &types.QuerySupplyOfResponse{},
// &types.QuerySupplyOfResponse{
// Amount: sdk.NewCoin(s.cfg.BondDenom, s.cfg.StakingTokens.Add(sdk.NewInt(10))),
// },
// },
{
"GRPC total supply of a bogus denom",
fmt.Sprintf("%s/cosmos/bank/v1beta1/supply/by_denom?denom=foobar", baseURL),
Expand Down

0 comments on commit 2e15622

Please sign in to comment.