summaryrefslogtreecommitdiffstats
path: root/api4/apitestlib.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/apitestlib.go')
-rw-r--r--api4/apitestlib.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/api4/apitestlib.go b/api4/apitestlib.go
index 537d8610c..d70b9e5f6 100644
--- a/api4/apitestlib.go
+++ b/api4/apitestlib.go
@@ -24,6 +24,7 @@ import (
"github.com/mattermost/platform/wsapi"
s3 "github.com/minio/minio-go"
+ "github.com/mattermost/platform/jobs"
)
type TestHelper struct {
@@ -68,6 +69,10 @@ func SetupEnterprise() *TestHelper {
*utils.Cfg.TeamSettings.EnableOpenServer = true
}
+ if jobs.Srv.Store == nil {
+ jobs.Srv.Store = app.Srv.Store
+ }
+
th := &TestHelper{}
th.Client = th.CreateClient()
th.SystemAdminClient = th.CreateClient()
@@ -99,6 +104,10 @@ func Setup() *TestHelper {
*utils.Cfg.TeamSettings.EnableOpenServer = true
}
+ if jobs.Srv.Store == nil {
+ jobs.Srv.Store = app.Srv.Store
+ }
+
th := &TestHelper{}
th.Client = th.CreateClient()
th.SystemAdminClient = th.CreateClient()