mirror of
https://github.com/grafana/grafana.git
synced 2026-08-11 13:44:59 -05:00
FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled (#78014)
This commit is contained in:
@@ -67,16 +67,16 @@ func TestIntegrationPluginManager(t *testing.T) {
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
features := featuremgmt.WithFeatures()
|
||||
cfg := &setting.Cfg{
|
||||
Raw: raw,
|
||||
StaticRootPath: staticRootPath,
|
||||
BundledPluginsPath: bundledPluginsPath,
|
||||
Azure: &azsettings.AzureSettings{},
|
||||
IsFeatureToggleEnabled: func(_ string) bool { return false },
|
||||
IsFeatureToggleEnabled: features.IsEnabled,
|
||||
}
|
||||
|
||||
tracer := tracing.InitializeTracerForTest()
|
||||
features := featuremgmt.WithFeatures()
|
||||
|
||||
hcp := httpclient.NewProvider()
|
||||
am := azuremonitor.ProvideService(cfg, hcp, features)
|
||||
|
||||
Reference in New Issue
Block a user