mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix random indices for slices in test files (#61884)
* Fix random indices for slices in test files * Empty commit
This commit is contained in:
@@ -328,7 +328,7 @@ func TestCalculateAutomaticChanges(t *testing.T) {
|
||||
group2 := models.GenerateGroupKey(orgID)
|
||||
rules2 := models.GenerateAlertRules(4, models.AlertRuleGen(withGroupKey(group2), models.WithSequentialGroupIndex()))
|
||||
|
||||
movedIndex := rand.Intn(len(rules2) - 1)
|
||||
movedIndex := rand.Intn(len(rules2))
|
||||
movedRule := rules2[movedIndex]
|
||||
copyRule := models.CopyRule(movedRule)
|
||||
copyRule.RuleGroup = group.RuleGroup
|
||||
|
||||
Reference in New Issue
Block a user