mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed tests
This commit is contained in:
parent
4c64e45a59
commit
dcaae47e96
@ -47,7 +47,7 @@ func TestAlertingDataAccess(t *testing.T) {
|
|||||||
So(err2, ShouldBeNil)
|
So(err2, ShouldBeNil)
|
||||||
So(alert.Name, ShouldEqual, "Alerting title")
|
So(alert.Name, ShouldEqual, "Alerting title")
|
||||||
So(alert.Message, ShouldEqual, "Alerting message")
|
So(alert.Message, ShouldEqual, "Alerting message")
|
||||||
So(alert.State, ShouldEqual, "no_data")
|
So(alert.State, ShouldEqual, "initialized")
|
||||||
So(alert.Frequency, ShouldEqual, 1)
|
So(alert.Frequency, ShouldEqual, 1)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ func TestAlertingDataAccess(t *testing.T) {
|
|||||||
So(query.Result[0].Name, ShouldEqual, "Name")
|
So(query.Result[0].Name, ShouldEqual, "Name")
|
||||||
|
|
||||||
Convey("Alert state should not be updated", func() {
|
Convey("Alert state should not be updated", func() {
|
||||||
So(query.Result[0].State, ShouldEqual, "no_data")
|
So(query.Result[0].State, ShouldEqual, "initialized")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user