summaryrefslogtreecommitdiffstats
path: root/app/apptestlib.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2018-01-11 15:23:41 -0600
committerCorey Hulen <corey@hulen.com>2018-01-11 13:23:41 -0800
commit1d9efd0e39a9663bb2fbf52b3353fe21ac3b6954 (patch)
tree5518bf9683e2fcbcb6b4e0acd3643a3146574ec4 /app/apptestlib.go
parent6990d052d5e95295e729aae28a0d30bfdcb98573 (diff)
downloadchat-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/apptestlib.go')
-rw-r--r--app/apptestlib.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/apptestlib.go b/app/apptestlib.go
index 912433290..1ec45f0fa 100644
--- a/app/apptestlib.go
+++ b/app/apptestlib.go
@@ -57,13 +57,18 @@ func StopTestStore() {
}
func setupTestHelper(enterprise bool) *TestHelper {
- var options []Option
+ options := []Option{DisableConfigWatch}
if testStore != nil {
options = append(options, StoreOverride(testStore))
}
+ a, err := New(options...)
+ if err != nil {
+ panic(err)
+ }
+
th := &TestHelper{
- App: New(options...),
+ App: a,
pluginHooks: make(map[string]plugin.Hooks),
}