diff options
Diffstat (limited to 'api/apitestlib.go')
-rw-r--r-- | api/apitestlib.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/api/apitestlib.go b/api/apitestlib.go index 547071e93..7e3c10efc 100644 --- a/api/apitestlib.go +++ b/api/apitestlib.go @@ -64,13 +64,18 @@ func StopTestStore() { } func setupTestHelper(enterprise bool) *TestHelper { - var options []app.Option + options := []app.Option{app.DisableConfigWatch} if testStore != nil { options = append(options, app.StoreOverride(testStore)) } + a, err := app.New(options...) + if err != nil { + panic(err) + } + th := &TestHelper{ - App: app.New(options...), + App: a, } th.originalConfig = th.App.Config().Clone() |