Skip to content

Commit

Permalink
fix paginator test
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Feb 12, 2022
1 parent 7efa3a7 commit 15dfc84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomad/state/paginator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestPaginator(t *testing.T) {
iter := newTestIterator(ids)
results := []string{}

paginator := NewPaginator(iter,
paginator, err := NewPaginator(iter,
structs.QueryOptions{
PerPage: tc.perPage, NextToken: tc.nextToken,
},
Expand All @@ -64,6 +64,7 @@ func TestPaginator(t *testing.T) {
results = append(results, result.GetID())
},
)
require.NoError(t, err)

nextToken := paginator.Page()
require.Equal(t, tc.expected, results)
Expand Down

0 comments on commit 15dfc84

Please sign in to comment.