mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): fixed test issues
This commit is contained in:
@@ -21,7 +21,7 @@ func TestAlertRuleChangesDataAccess(t *testing.T) {
|
||||
|
||||
Convey("When dashboard is removed", func() {
|
||||
items := []*m.AlertRule{
|
||||
&m.AlertRule{
|
||||
{
|
||||
PanelId: 1,
|
||||
DashboardId: testDash.Id,
|
||||
Query: "Query",
|
||||
@@ -48,7 +48,6 @@ func TestAlertRuleChangesDataAccess(t *testing.T) {
|
||||
|
||||
SaveAlerts(&cmd)
|
||||
|
||||
query := &m.GetAlertChangesQuery{OrgId: FakeOrgId}
|
||||
er := GetAlertRuleChanges(query)
|
||||
So(er, ShouldBeNil)
|
||||
So(len(query.Result), ShouldEqual, 1)
|
||||
|
||||
@@ -81,7 +81,7 @@ func NewEngine() {
|
||||
err = SetEngine(x, setting.Env == setting.DEV)
|
||||
|
||||
if err != nil {
|
||||
sqlog.Error("Fail to initialize orm engine: %v", err)
|
||||
sqlog.Error("Fail to initialize orm engine", "error", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user