mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
UnifiedStorage: fix watcher test (#94301)
This commit is contained in:
@@ -30,7 +30,6 @@ import (
|
|||||||
|
|
||||||
storagetesting "github.com/grafana/grafana/pkg/apiserver/storage/testing"
|
storagetesting "github.com/grafana/grafana/pkg/apiserver/storage/testing"
|
||||||
infraDB "github.com/grafana/grafana/pkg/infra/db"
|
infraDB "github.com/grafana/grafana/pkg/infra/db"
|
||||||
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
|
||||||
"github.com/grafana/grafana/pkg/setting"
|
"github.com/grafana/grafana/pkg/setting"
|
||||||
"github.com/grafana/grafana/pkg/storage/unified/resource"
|
"github.com/grafana/grafana/pkg/storage/unified/resource"
|
||||||
"github.com/grafana/grafana/pkg/storage/unified/sql"
|
"github.com/grafana/grafana/pkg/storage/unified/sql"
|
||||||
@@ -134,9 +133,8 @@ func testSetup(t testing.TB, opts ...setupOption) (context.Context, storage.Inte
|
|||||||
}
|
}
|
||||||
dbstore := infraDB.InitTestDB(t)
|
dbstore := infraDB.InitTestDB(t)
|
||||||
cfg := setting.NewCfg()
|
cfg := setting.NewCfg()
|
||||||
features := featuremgmt.WithFeatures()
|
|
||||||
|
|
||||||
eDB, err := dbimpl.ProvideResourceDB(dbstore, cfg, features, nil)
|
eDB, err := dbimpl.ProvideResourceDB(dbstore, cfg, nil)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.NotNil(t, eDB)
|
require.NotNil(t, eDB)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user