diff --git a/api4/team_test.go b/api4/team_test.go index ba7b23ef37..210bff1178 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)