summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2017-08-09 09:33:30 -0400
committerJoramWilander <jwawilander@gmail.com>2017-08-09 09:33:30 -0400
commitd780ac6e27a84fd0ac4c0eff821d7a62179b400a (patch)
tree06587bca49698dc61737165158e0c22049e7dc3c /api4/team_test.go
parent311335b62cb7768204ceff41e516acad162e4011 (diff)
downloadchat-d780ac6e27a84fd0ac4c0eff821d7a62179b400a.tar.gz
chat-d780ac6e27a84fd0ac4c0eff821d7a62179b400a.tar.bz2
chat-d780ac6e27a84fd0ac4c0eff821d7a62179b400a.zip
Update unit test
Diffstat (limited to 'api4/team_test.go')
-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)