diff options
author | George Goldberg <george@gberg.me> | 2018-09-14 16:21:05 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-09-14 08:21:05 -0700 |
commit | fdbb6de3d52a5f41f075812e3b87616685a21b9b (patch) | |
tree | 1e434c28bf56b82148124f15958f36423e02828c /api4/team_test.go | |
parent | 83a00ae9251475b3ef39284ba922cb3ca55a6fbe (diff) | |
download | chat-fdbb6de3d52a5f41f075812e3b87616685a21b9b.tar.gz chat-fdbb6de3d52a5f41f075812e3b87616685a21b9b.tar.bz2 chat-fdbb6de3d52a5f41f075812e3b87616685a21b9b.zip |
MM-11520: Make entity ID checks consistent across api4. (#9395)
* MM-11520: Make entity ID checks consistent across api4.
* Update tests.
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index 8304c979d..547b8d4a9 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -322,11 +322,8 @@ func TestUpdateTeam(t *testing.T) { originalTeamId := team.Id team.Id = model.NewId() - if r, err := Client.DoApiPut(Client.GetTeamRoute(originalTeamId), team.ToJson()); err != nil { - t.Fatal(err) - } else { - uteam = model.TeamFromJson(r.Body) - } + r, _ := Client.DoApiPut(Client.GetTeamRoute(originalTeamId), team.ToJson()) + assert.Equal(t, http.StatusBadRequest, r.StatusCode) if uteam.Id != originalTeamId { t.Fatal("wrong team id") |