summaryrefslogtreecommitdiffstats
path: root/api4/apitestlib.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/apitestlib.go')
-rw-r--r--api4/apitestlib.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/api4/apitestlib.go b/api4/apitestlib.go
index fad066ff8..301e312da 100644
--- a/api4/apitestlib.go
+++ b/api4/apitestlib.go
@@ -23,7 +23,6 @@ import (
"github.com/mattermost/mattermost-server/utils"
"github.com/mattermost/mattermost-server/wsapi"
- "github.com/mattermost/mattermost-server/jobs"
s3 "github.com/minio/minio-go"
"github.com/minio/minio-go/pkg/credentials"
)
@@ -76,8 +75,8 @@ func setupTestHelper(enterprise bool) *TestHelper {
utils.License().Features.SetDefaults()
}
- if jobs.Srv.Store == nil {
- jobs.Srv.Store = th.App.Srv.Store
+ if th.App.Jobs.Store == nil {
+ th.App.Jobs.Store = th.App.Srv.Store
}
th.Client = th.CreateClient()