diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-06 17:12:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 17:12:54 -0500 |
commit | 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 (patch) | |
tree | 2766bacc1f045fa685ca3d8310cd6174d0311d09 /api4/plugin_test.go | |
parent | b84bd21089d305333fa4114b95be70f5ad94ad1b (diff) | |
download | chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.gz chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.bz2 chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.zip |
app type transition (#7167)
Diffstat (limited to 'api4/plugin_test.go')
-rw-r--r-- | api4/plugin_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 } |