summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-31 09:56:20 -0400
committerChristopher Speller <crspeller@gmail.com>2017-03-31 09:56:20 -0400
commit5f6d50bff1b4098bc0ef3c120e7b12104e5c4894 (patch)
tree6fe69bc72fa77547dd4bba2afb0f51fa6e79ca93 /api4/team_test.go
parent4e224c299697e570e98c388bf23a42ffa1e6af0d (diff)
downloadchat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.tar.gz
chat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.tar.bz2
chat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.zip
Use 201 status code where appropriate for APIv4 (#5903)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r--api4/team_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index 40f5ec778..a38acf2e6 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -22,6 +22,7 @@ func TestCreateTeam(t *testing.T) {
team := &model.Team{Name: GenerateTestUsername(), DisplayName: "Some Team", Type: model.TEAM_OPEN}
rteam, resp := Client.CreateTeam(team)
CheckNoError(t, resp)
+ CheckCreatedStatus(t, resp)
if rteam.Name != team.Name {
t.Fatal("names did not match")
@@ -635,6 +636,7 @@ func TestAddTeamMember(t *testing.T) {
th.LoginBasic()
tm, resp = Client.AddTeamMember(team.Id, otherUser.Id, "", "", "")
CheckNoError(t, resp)
+ CheckCreatedStatus(t, resp)
// Check all the returned data.
if tm == nil {