mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Initial Baby Step to refactoring settings from global vars to instance (#11777)
* wip: start on refactoring settings * settings: progress on settings refactor * refactor: progress on settings refactoring * fix: fixed failing test * settings: moved smtp settings from global to instance
This commit is contained in:
@@ -13,7 +13,8 @@ func TestInfluxdbResponseParser(t *testing.T) {
|
||||
Convey("Response parser", func() {
|
||||
parser := &ResponseParser{}
|
||||
|
||||
setting.NewConfigContext(&setting.CommandLineArgs{
|
||||
cfg := setting.NewCfg()
|
||||
cfg.Load(&setting.CommandLineArgs{
|
||||
HomePath: "../../../",
|
||||
})
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ import (
|
||||
|
||||
func TestInterval(t *testing.T) {
|
||||
Convey("Default interval ", t, func() {
|
||||
setting.NewConfigContext(&setting.CommandLineArgs{
|
||||
cfg := setting.NewCfg()
|
||||
cfg.Load(&setting.CommandLineArgs{
|
||||
HomePath: "../../",
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user