diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-24 18:36:31 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-24 19:36:31 -0400 |
commit | 9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae (patch) | |
tree | 635ba5631b382c1e69f9719c6131ce74428b69ed /api/webhook_test.go | |
parent | 61b023f5dfe796c7ba8183292853f01817016d14 (diff) | |
download | chat-9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae.tar.gz chat-9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae.tar.bz2 chat-9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae.zip |
PLT-7599: webhook post splitting (#7707)
* webhook post splitting
* style fix
* update old webhook test
Diffstat (limited to 'api/webhook_test.go')
-rw-r--r-- | api/webhook_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/webhook_test.go b/api/webhook_test.go index 285650b5c..68dc4f4e7 100644 --- a/api/webhook_test.go +++ b/api/webhook_test.go @@ -1065,8 +1065,8 @@ func TestIncomingWebhooks(t *testing.T) { ] }` - if _, err := Client.DoPost(url, attachmentPayload, "application/json"); err == nil || err.StatusCode != http.StatusBadRequest { - t.Fatal("should have failed with bad request - attachment too long") + if _, err := Client.DoPost(url, attachmentPayload, "application/json"); err != nil { + t.Fatal(err) } th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableIncomingWebhooks = false }) |