Skip to content

Commit

Permalink
test case for offset exceeds limit
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed Feb 13, 2025
1 parent 5bd422e commit 7e6ea91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/oracle/keeper/query_native_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func TestQueryStakerInfosPaginated(t *testing.T) {
resp.StakerInfos,
)
}
resp, err := keeper.StakerInfos(wctx, request(assetID, nil, uint64(len(msgs)), 0, false))
require.Empty(t, resp.StakerInfos)
require.Equal(t, uint64(len(msgs)), resp.Pagination.Total)
require.NoError(t, err)
})
t.Run("ByKey", func(t *testing.T) {
step := 2
Expand Down

0 comments on commit 7e6ea91

Please sign in to comment.