diff --git a/pkg/api/metrics_test.go b/pkg/api/metrics_test.go index 552f83f3ae8..31b850dad73 100644 --- a/pkg/api/metrics_test.go +++ b/pkg/api/metrics_test.go @@ -9,7 +9,6 @@ import ( "strings" "testing" - "github.com/grafana/grafana/pkg/bus" acmock "github.com/grafana/grafana/pkg/services/accesscontrol/mock" "github.com/grafana/grafana/pkg/services/featuremgmt" "github.com/grafana/grafana/pkg/services/sqlstore/mockstore" @@ -197,7 +196,7 @@ func TestAPIEndpoint_Metrics_QueryMetricsFromDashboard(t *testing.T) { sc := setupHTTPServerWithMockDb(t, false, false) ss := kvstore.SetupTestService(t) - ds := datasources.ProvideService(bus.New(), nil, ss, nil, featuremgmt.WithFeatures(), acmock.New(), acmock.NewPermissionsServicesMock()) + ds := datasources.ProvideService(nil, ss, nil, featuremgmt.WithFeatures(), acmock.New(), acmock.NewPermissionsServicesMock()) setInitCtxSignedInViewer(sc.initCtx) sc.hs.queryDataService = query.ProvideService( diff --git a/pkg/services/query/query_test.go b/pkg/services/query/query_test.go index 175cb5894a9..cd30ad37d5b 100644 --- a/pkg/services/query/query_test.go +++ b/pkg/services/query/query_test.go @@ -10,7 +10,6 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/grafana/grafana/pkg/api/dtos" - "github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/components/simplejson" "github.com/grafana/grafana/pkg/models" "github.com/grafana/grafana/pkg/plugins" @@ -69,7 +68,7 @@ func setup(t *testing.T) *testContext { rv := &fakePluginRequestValidator{} ss := kvstore.SetupTestService(t) - ds := datasources.ProvideService(bus.New(), nil, ss, nil, featuremgmt.WithFeatures(), acmock.New(), acmock.NewPermissionsServicesMock()) + ds := datasources.ProvideService(nil, ss, nil, featuremgmt.WithFeatures(), acmock.New(), acmock.NewPermissionsServicesMock()) return &testContext{ pluginContext: pc,