diff options
author | Chris <ccbrown112@gmail.com> | 2018-01-17 12:38:37 -0600 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-01-17 13:38:37 -0500 |
commit | 4e6cc846a618ecef5c101727bbd03f6674044ab7 (patch) | |
tree | 1fc093b4b338acf34180c93f30a32de50e17d089 /app/app_test.go | |
parent | dce061630530c467966378ae3c5adbcf4a09e34f (diff) | |
download | chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.gz chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.tar.bz2 chat-4e6cc846a618ecef5c101727bbd03f6674044ab7.zip |
Finally remove utils.Cfg (#8113)
* finally remove utils.Cfg
* fix compile error
* another test compilation fix
Diffstat (limited to 'app/app_test.go')
-rw-r--r-- | app/app_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/app_test.go b/app/app_test.go index b686381ea..25b19ead8 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -61,15 +61,11 @@ func TestUpdateConfig(t *testing.T) { defer th.TearDown() prev := *th.App.Config().ServiceSettings.SiteURL - defer th.App.UpdateConfig(func(cfg *model.Config) { - *cfg.ServiceSettings.SiteURL = prev - }) - listener := th.App.AddConfigListener(func(old, current *model.Config) { + th.App.AddConfigListener(func(old, current *model.Config) { assert.Equal(t, prev, *old.ServiceSettings.SiteURL) assert.Equal(t, "foo", *current.ServiceSettings.SiteURL) }) - defer th.App.RemoveConfigListener(listener) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.SiteURL = "foo" |