From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- api4/team_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'api4/team_test.go') 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") } -- cgit v1.2.3-1-g7c22