Этот коммит содержится в:
Chris
2017-08-17 17:07:47 -05:00
коммит произвёл Corey Hulen
родитель 4d243e9256
Коммит 2c895ee66e
2 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@@ -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)
}
}