Skip to content

Commit

Permalink
Fix pagination testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhellyer committed Dec 9, 2024
1 parent 0db7a6c commit 21721d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest/alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func TestAlert(t *testing.T) {

linkHeader := http.Header{}
linkHeader.Set("Link", `</alerting/v1/alerts?next=`+*alertList[1].Name+`>; rel="next"`)
require.Nil(t, mock.AddAlertListTestCase("", nil, linkHeader, alertList[0:1]))
require.Nil(t, mock.AddAlertListTestCase("next="+*alertList[1].Name, nil, nil, alertList[2:3]))
require.Nil(t, mock.AddAlertListTestCase("", nil, linkHeader, alertList[0:2]))
require.Nil(t, mock.AddAlertListTestCase("next="+*alertList[1].Name, nil, nil, alertList[2:5]))

respAlerts, _, err := client.Alerts.List()
require.Nil(t, err)
Expand Down

0 comments on commit 21721d0

Please sign in to comment.