diff --git a/pkg/services/alerting/rule_test.go b/pkg/services/alerting/rule_test.go index 41c2f5ec6ce..91b31d6d07f 100644 --- a/pkg/services/alerting/rule_test.go +++ b/pkg/services/alerting/rule_test.go @@ -75,7 +75,7 @@ func TestAlertRuleModel(t *testing.T) { alertRule, err := NewRuleFromDBAlert(alert) So(err, ShouldBeNil) - So(alertRule.Conditions, ShouldHaveLength, 1) + So(len(alertRule.Conditions), ShouldEqual, 1) Convey("Can read notifications", func() { So(len(alertRule.Notifications), ShouldEqual, 2)