Endpoint for APIv4 POST /channels/{channel_id}/members (#5775)

Этот коммит содержится в:
Saturnino Abril
2017-03-20 21:44:08 +09:00
коммит произвёл George Goldberg
родитель ac8282cda1
Коммит 7e89077a93
5 изменённых файлов: 172 добавлений и 2 удалений

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

@@ -498,14 +498,14 @@ func CheckErrorMessage(t *testing.T, resp *model.Response, errorId string) {
func CheckInternalErrorStatus(t *testing.T, resp *model.Response) {
if resp.Error == nil {
debug.PrintStack()
t.Fatal("should have errored with status:" + strconv.Itoa(http.StatusNotImplemented))
t.Fatal("should have errored with status:" + strconv.Itoa(http.StatusInternalServerError))
return
}
if resp.StatusCode != http.StatusInternalServerError {
debug.PrintStack()
t.Log("actual: " + strconv.Itoa(resp.StatusCode))
t.Log("expected: " + strconv.Itoa(http.StatusNotImplemented))
t.Log("expected: " + strconv.Itoa(http.StatusInternalServerError))
t.Fatal("wrong status code")
}
}