diff options
Diffstat (limited to 'api4/team_test.go')
-rw-r--r-- | api4/team_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api4/team_test.go b/api4/team_test.go index 544fa6157..da2f42369 100644 --- a/api4/team_test.go +++ b/api4/team_test.go @@ -282,7 +282,7 @@ func TestUpdateTeam(t *testing.T) { uteam, resp = Client.UpdateTeam(team) CheckNoError(t, resp) - if uteam.AllowOpenInvite != true { + if !uteam.AllowOpenInvite { t.Fatal("Update failed") } @@ -419,7 +419,7 @@ func TestPatchTeam(t *testing.T) { if rteam.InviteId != "inviteid1" { t.Fatal("InviteId did not update properly") } - if rteam.AllowOpenInvite != true { + if !rteam.AllowOpenInvite { t.Fatal("AllowOpenInvite did not update properly") } @@ -1780,13 +1780,13 @@ func TestTeamExists(t *testing.T) { exists, resp := Client.TeamExists(team.Name, "") CheckNoError(t, resp) - if exists != true { + if !exists { t.Fatal("team should exist") } exists, resp = Client.TeamExists("testingteam", "") CheckNoError(t, resp) - if exists != false { + if exists { t.Fatal("team should not exist") } @@ -1889,7 +1889,7 @@ func TestInviteUsersToTeam(t *testing.T) { okMsg, resp := th.SystemAdminClient.InviteUsersToTeam(th.BasicTeam.Id, emailList) CheckNoError(t, resp) - if okMsg != true { + if !okMsg { t.Fatal("should return true") } |