* remove global config watcher

* keep config watcher disabled for tests

* compile fix

* fix resource leak
Этот коммит содержится в:
Chris
2018-01-11 15:23:41 -06:00
коммит произвёл Corey Hulen
родитель 6990d052d5
Коммит 1d9efd0e39
12 изменённых файлов: 215 добавлений и 175 удалений

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

@@ -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),
}