summaryrefslogtreecommitdiffstats
path: root/api4/webhook_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/webhook_test.go')
-rw-r--r--api4/webhook_test.go2
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)
}
}