diff options
author | Chris <ccbrown112@gmail.com> | 2017-08-17 17:07:47 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-08-17 15:07:47 -0700 |
commit | 2c895ee66eed626721135acfcc48254c6e3f3b29 (patch) | |
tree | c5859428e32fe72454ac388aef717cb46a7f0d0d /api4/webhook_test.go | |
parent | 4d243e9256f86517fc55529372f729568582c03c (diff) | |
download | chat-2c895ee66eed626721135acfcc48254c6e3f3b29.tar.gz chat-2c895ee66eed626721135acfcc48254c6e3f3b29.tar.bz2 chat-2c895ee66eed626721135acfcc48254c6e3f3b29.zip |
webhook merge fix (#7250)
Diffstat (limited to 'api4/webhook_test.go')
-rw-r--r-- | api4/webhook_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/webhook_test.go b/api4/webhook_test.go index 80328e373..8cab85c99 100644 --- a/api4/webhook_test.go +++ b/api4/webhook_test.go @@ -924,7 +924,7 @@ func TestCommandWebhooks(t *testing.T) { } for i := 0; i < 5; i++ { - if _, err := http.Post(Client.Url+"/hooks/commands/"+hook.Id, "application/json", bytes.NewBufferString("{\"text\":\"this is a test\"}")); err != nil { + if resp, err := http.Post(Client.Url+"/hooks/commands/"+hook.Id, "application/json", bytes.NewBufferString("{\"text\":\"this is a test\"}")); err != nil || resp.StatusCode != http.StatusOK { t.Fatal(err) } } |