Use 201 status code where appropriate for APIv4 (#5903)

Этот коммит содержится в:
Joram Wilander
2017-03-31 09:56:20 -04:00
коммит произвёл Christopher Speller
родитель 4e224c2996
Коммит 5f6d50bff1
11 изменённых файлов: 21 добавлений и 0 удалений

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

@@ -23,6 +23,7 @@ func TestCreatePost(t *testing.T) {
post := &model.Post{ChannelId: th.BasicChannel.Id, Message: "#hashtag a" + model.NewId() + "a"}
rpost, resp := Client.CreatePost(post)
CheckNoError(t, resp)
CheckCreatedStatus(t, resp)
if rpost.Message != post.Message {
t.Fatal("message didn't match")