From 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2017 17:12:54 -0500 Subject: app type transition (#7167) --- api4/plugin_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api4/plugin_test.go') diff --git a/api4/plugin_test.go b/api4/plugin_test.go index c1d6c987c..caaeeef6b 100644 --- a/api4/plugin_test.go +++ b/api4/plugin_test.go @@ -9,7 +9,6 @@ import ( "os" "testing" - "github.com/mattermost/platform/app" "github.com/mattermost/platform/utils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -30,7 +29,7 @@ func TestPlugin(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer TearDown() - app.StartupPlugins(pluginDir, webappDir) + th.App.StartupPlugins(pluginDir, webappDir) enablePlugins := *utils.Cfg.PluginSettings.Enable defer func() { @@ -111,5 +110,5 @@ func TestPlugin(t *testing.T) { _, resp = th.SystemAdminClient.RemovePlugin("bad.id") CheckNotFoundStatus(t, resp) - app.Srv.PluginEnv = nil + th.App.Srv.PluginEnv = nil } -- cgit v1.2.3-1-g7c22