Forráskód Böngészése

test(alerting): fixes broken unit test

bergquist 9 éve
szülő
commit
cb6fd4ca78
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      pkg/services/alerting/rule_test.go

+ 1 - 1
pkg/services/alerting/rule_test.go

@@ -75,7 +75,7 @@ func TestAlertRuleModel(t *testing.T) {
 			alertRule, err := NewRuleFromDBAlert(alert)
 			alertRule, err := NewRuleFromDBAlert(alert)
 			So(err, ShouldBeNil)
 			So(err, ShouldBeNil)
 
 
-			So(alertRule.Conditions, ShouldHaveLength, 1)
+			So(len(alertRule.Conditions), ShouldEqual, 1)
 
 
 			Convey("Can read notifications", func() {
 			Convey("Can read notifications", func() {
 				So(len(alertRule.Notifications), ShouldEqual, 2)
 				So(len(alertRule.Notifications), ShouldEqual, 2)