* remove global cfg vars

* enterprise update
Этот коммит содержится в:
Chris
2018-01-12 08:02:11 -06:00
коммит произвёл Joram Wilander
родитель 3d3a234fca
Коммит 7e5ce97668
17 изменённых файлов: 343 добавлений и 354 удалений

Просмотреть файл

@@ -20,7 +20,8 @@ func TestConfigFlag(t *testing.T) {
defer os.RemoveAll(dir)
utils.TranslationsPreInit()
config := utils.LoadGlobalConfig("config.json")
config, _, err := utils.LoadConfig("config.json")
require.Nil(t, err)
configPath := filepath.Join(dir, "foo.json")
require.NoError(t, ioutil.WriteFile(configPath, []byte(config.ToJson()), 0600))