diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-11 15:23:41 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2018-01-11 13:23:41 -0800 |
commit | 1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954 (patch) | |
tree | 5518bf9683e2fcbcb6b4e0acd3643a3146574ec4 /app/app_test.go | |
parent | 6990d052d5e95295e729aae28a0d30bfdcb98573 (diff) | |
download | chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.tar.gz chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.tar.bz2 chat-1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954.zip |
Remove global config watcher (#8080)
* remove global config watcher
* keep config watcher disabled for tests
* compile fix
* fix resource leak
Diffstat (limited to 'app/app_test.go')
-rw-r--r-- | app/app_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/app_test.go b/app/app_test.go index 2058ddd79..fd24bdfd7 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -11,6 +11,7 @@ import ( l4g "github.com/alecthomas/log4go" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/store/storetest" @@ -47,7 +48,8 @@ func TestMain(m *testing.M) { func TestAppRace(t *testing.T) { for i := 0; i < 10; i++ { - a := New() + a, err := New() + require.NoError(t, err) a.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.ListenAddress = ":0" }) a.StartServer() a.Shutdown() |