Skip to content

Commit

Permalink
types/query: fix pagination test (#8096)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia authored Dec 6, 2020
1 parent dfc05a0 commit f28849d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/query/pagination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *paginationTestSuite) TestPagination() {
request = types.NewQueryAllBalancesRequest(addr1, pageReq)
res, err = queryClient.AllBalances(gocontext.Background(), request)
s.Require().Error(err)
s.Require().Equal(err.Error(), "invalid request, either offset or key is expected, got both")
s.Require().Equal("rpc error: code = InvalidArgument desc = paginate: invalid request, either offset or key is expected, got both", err.Error())

s.T().Log("verify paginate with offset greater than total results")
pageReq = &query.PageRequest{Offset: 300, Limit: defaultLimit, CountTotal: false}
Expand Down

0 comments on commit f28849d

Please sign in to comment.