diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-03-20 21:44:08 +0900 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-20 12:44:08 +0000 |
commit | 7e89077a93fd187284e426db503a4ab5cbcdf248 (patch) | |
tree | 9f2790d73c238b7d57eff7f6317c30e594bfa141 /api4/apitestlib.go | |
parent | ac8282cda1455802f52ebe6687eeeef6c950bf49 (diff) | |
download | chat-7e89077a93fd187284e426db503a4ab5cbcdf248.tar.gz chat-7e89077a93fd187284e426db503a4ab5cbcdf248.tar.bz2 chat-7e89077a93fd187284e426db503a4ab5cbcdf248.zip |
Endpoint for APIv4 POST /channels/{channel_id}/members (#5775)
Diffstat (limited to 'api4/apitestlib.go')
-rw-r--r-- | api4/apitestlib.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/apitestlib.go b/api4/apitestlib.go index 64d3f22b2..b3007ebfe 100644 --- a/api4/apitestlib.go +++ b/api4/apitestlib.go @@ -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") } } |