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 удалений

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

@@ -27,6 +27,7 @@ func TestCreateChannel(t *testing.T) {
rchannel, resp := Client.CreateChannel(channel)
CheckNoError(t, resp)
CheckCreatedStatus(t, resp)
if rchannel.Name != channel.Name {
t.Fatal("names did not match")
@@ -1501,6 +1502,7 @@ func TestAddChannelMember(t *testing.T) {
cm, resp := Client.AddChannelMember(publicChannel.Id, user2.Id)
CheckNoError(t, resp)
CheckCreatedStatus(t, resp)
if cm.ChannelId != publicChannel.Id {
t.Fatal("should have returned exact channel")