diff options
Diffstat (limited to 'web/web_test.go')
-rw-r--r-- | web/web_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/web_test.go b/web/web_test.go index 4497f00cc..9b6230013 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -17,7 +17,7 @@ import ( "github.com/mattermost/mattermost-server/utils" ) -var ApiClient *model.Client +var ApiClient *model.Client4 var URL string type persistentTestStore struct { @@ -58,7 +58,7 @@ func Setup() *TestHelper { NewWeb(a, a.Srv.Router) URL = fmt.Sprintf("http://localhost:%v", a.Srv.ListenAddr.Port) - ApiClient = model.NewClient(URL) + ApiClient = model.NewAPIv4Client(URL) a.DoAdvancedPermissionsMigration() @@ -66,7 +66,6 @@ func Setup() *TestHelper { a.UpdateConfig(func(cfg *model.Config) { *cfg.TeamSettings.EnableOpenServer = true - *cfg.ServiceSettings.EnableAPIv3 = true }) th := &TestHelper{ |