diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-12 08:02:11 -0600 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-12 09:02:11 -0500 |
commit | 7e5ce976681e99be6b26d428935ba1106d530efa (patch) | |
tree | e050da49c943bf77f57b03eceb0b650114c7f1b6 /cmd/platform/mattermost_test.go | |
parent | 3d3a234fca1d2ee43f5c4fc8961d44fde2512c82 (diff) | |
download | chat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.gz chat-7e5ce976681e99be6b26d428935ba1106d530efa.tar.bz2 chat-7e5ce976681e99be6b26d428935ba1106d530efa.zip |
Remove global cfg vars (#8099)
* remove global cfg vars
* enterprise update
Diffstat (limited to 'cmd/platform/mattermost_test.go')
-rw-r--r-- | cmd/platform/mattermost_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/platform/mattermost_test.go b/cmd/platform/mattermost_test.go index eba45801a..7246d620f 100644 --- a/cmd/platform/mattermost_test.go +++ b/cmd/platform/mattermost_test.go @@ -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)) |