From 9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 24 Oct 2017 18:36:31 -0500 Subject: PLT-7599: webhook post splitting (#7707) * webhook post splitting * style fix * update old webhook test --- api/webhook_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/webhook_test.go') 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 }) -- cgit v1.2.3-1-g7c22