diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-09-14 11:47:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 11:47:34 -0400 |
commit | 23e64ec9aa2fd245a7e3b2faf5973433d8080c03 (patch) | |
tree | 8e3309f5415933ef077c6348cfb438f184ad1dd3 /api4 | |
parent | 9fc7845112692b2dcca2b928e463fade7a5bfb7b (diff) | |
download | chat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.tar.gz chat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.tar.bz2 chat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.zip |
Invalidate webhook cache after updating webhook (#7430)
Diffstat (limited to 'api4')
-rw-r--r-- | api4/webhook_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/webhook_test.go b/api4/webhook_test.go index aa263d47f..f85761026 100644 --- a/api4/webhook_test.go +++ b/api4/webhook_test.go @@ -8,6 +8,8 @@ import ( "net/http" "testing" + "github.com/stretchr/testify/assert" + "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/utils" ) @@ -503,6 +505,9 @@ func TestUpdateIncomingHook(t *testing.T) { } else { t.Fatal("should not be nil") } + + //updatedHook, _ = th.App.GetIncomingWebhook(createdHook.Id) + assert.Equal(t, updatedHook.ChannelId, createdHook.ChannelId) }) t.Run("RetainCreateAt", func(t *testing.T) { |