diff options
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 c5e08fe97..e62790173 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -781,7 +781,7 @@ func TestAddTeamMember(t *testing.T) { tm, resp := Client.AddTeamMember(team.Id, otherUser.Id) CheckForbiddenStatus(t, resp) if resp.Error == nil { - t.Fatalf("ERror is nhul") + t.Fatalf("Error is nhul") } Client.Logout() @@ -971,14 +971,11 @@ func TestAddTeamMember(t *testing.T) { } tm, resp = Client.AddTeamMemberFromInvite("", "", "junk") - CheckBadRequestStatus(t, resp) + CheckNotFoundStatus(t, resp) if tm != nil { t.Fatal("should have not returned team member") } - - _, resp = Client.AddTeamMemberFromInvite("", "", "junk") - CheckBadRequestStatus(t, resp) } func TestAddTeamMembers(t *testing.T) { |