Skip to content

Commit

Permalink
correcting testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
flkhndlr committed Apr 18, 2023
1 parent 4732c3e commit c27c52e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alerting_alert_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
)

func TestAlertRules(t *testing.T) {
mockData := strings.Repeat(getAlertRulesJSON+",", 1000) // make 1000 folders.
mockData := strings.Repeat(getAlertRulesJSON+",", 1000) // make 1000 alertRules.
mockData = "[" + mockData[:len(mockData)-1] + "]" // remove trailing comma; make a json list.

// This creates 1000 + 1000 + 1 (2001, 3 calls) worth of folders.
// This creates 1000 + 1000 + 1 (2001, 3 calls) worth of alertRules.
client := gapiTestToolsFromCalls(t, []mockServerCall{
{200, mockData},
{200, mockData},
{200, "[" + getFolderJSON + "]"},
})

const dashCount = 1000
const dashCount = 2001

alertRules, err := client.AlertRules()
if err != nil {
Expand Down

0 comments on commit c27c52e

Please sign in to comment.