summaryrefslogtreecommitdiffstats
path: root/api4/webhook_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/webhook_test.go')
-rw-r--r--api4/webhook_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/webhook_test.go b/api4/webhook_test.go
index 8cab85c99..28b98bf42 100644
--- a/api4/webhook_test.go
+++ b/api4/webhook_test.go
@@ -8,7 +8,6 @@ import (
"net/http"
"testing"
- "github.com/mattermost/platform/app"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
)
@@ -914,7 +913,7 @@ func TestCommandWebhooks(t *testing.T) {
UserId: th.BasicUser.Id,
ChannelId: th.BasicChannel.Id,
}
- hook, err := app.CreateCommandWebhook(cmd.Id, args)
+ hook, err := th.App.CreateCommandWebhook(cmd.Id, args)
if err != nil {
t.Fatal(err)
}