Pārlūkot izejas kodu

test(alerting): fixes broken test

bergquist 9 gadi atpakaļ
vecāks
revīzija
b606d9b7da
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      pkg/services/sqlstore/alert_state_test.go

+ 2 - 2
pkg/services/sqlstore/alert_state_test.go

@@ -54,7 +54,7 @@ func TestAlertingStateAccess(t *testing.T) {
 
 
 			err = SetNewAlertState(&m.UpdateAlertStateCommand{
 			err = SetNewAlertState(&m.UpdateAlertStateCommand{
 				AlertId:  1,
 				AlertId:  1,
-				NewState: "ALERT",
+				NewState: "CRITICAL",
 				Info:     "Shit just hit the fan",
 				Info:     "Shit just hit the fan",
 			})
 			})
 
 
@@ -62,7 +62,7 @@ func TestAlertingStateAccess(t *testing.T) {
 				query := &m.GetAlertByIdQuery{Id: 1}
 				query := &m.GetAlertByIdQuery{Id: 1}
 				err := GetAlertById(query)
 				err := GetAlertById(query)
 				So(err, ShouldBeNil)
 				So(err, ShouldBeNil)
-				So(query.Result.State, ShouldEqual, "ALERT")
+				So(query.Result.State, ShouldEqual, "CRITICAL")
 			})
 			})
 
 
 			Convey("Changes state to ok", func() {
 			Convey("Changes state to ok", func() {