summaryrefslogtreecommitdiffstats
path: root/api4
diff options
context:
space:
mode:
Diffstat (limited to 'api4')
-rw-r--r--api4/team_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index ba7b23ef3..210bff117 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -503,6 +503,10 @@ func TestSearchAllTeams(t *testing.T) {
defer TearDown()
Client := th.Client
oTeam := th.BasicTeam
+ oTeam.AllowOpenInvite = true
+
+ updatedTeam, _ := app.UpdateTeam(oTeam)
+ oTeam.UpdateAt = updatedTeam.UpdateAt
pTeam := &model.Team{DisplayName: "PName", Name: GenerateTestTeamName(), Email: GenerateTestEmail(), Type: model.TEAM_INVITE}
Client.CreateTeam(pTeam)