diff options
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 }) |