diff --git a/pkg/services/alerting/test_rule.go b/pkg/services/alerting/test_rule.go index d04e052672f..b8c4e2e5edf 100644 --- a/pkg/services/alerting/test_rule.go +++ b/pkg/services/alerting/test_rule.go @@ -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