Endpoint for APIv4 POST /channels/{channel_id}/members (#5775)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
ac8282cda1
Коммит
7e89077a93
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user