Fix: Add missing store in test rule (#46151)

This commit is contained in:
Selene
2022-03-03 12:00:33 +01:00
committed by GitHub
parent fa7323e6d5
commit 87d3c06fef

View File

@@ -32,7 +32,7 @@ func (e *AlertEngine) AlertTest(orgID int64, dashboard *simplejson.Json, panelID
handler := NewEvalHandler(e.DataService)
context := NewEvalContext(context.Background(), rule, fakeRequestValidator{}, nil)
context := NewEvalContext(context.Background(), rule, fakeRequestValidator{}, e.sqlStore)
context.IsTestRun = true
context.IsDebug = true