mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 23:52:20 +08:00
FeatureToggles: Add context and and an explicit global check (#78081)
This commit is contained in:
@ -177,7 +177,7 @@ func makeSQLStoreTestConfig(t *testing.T, tc sqlStoreTest) *setting.Cfg {
|
||||
tc.features = featuremgmt.WithFeatures()
|
||||
}
|
||||
// nolint:staticcheck
|
||||
cfg := setting.NewCfgWithFeatures(tc.features.IsEnabled)
|
||||
cfg := setting.NewCfgWithFeatures(tc.features.IsEnabledGlobally)
|
||||
|
||||
sec, err := cfg.Raw.NewSection("database")
|
||||
require.NoError(t, err)
|
||||
|
Reference in New Issue
Block a user