summaryrefslogtreecommitdiffstats
path: root/api4/team_test.go
diff options
context:
space:
mode:
authorMartin Kraft <mkraft@users.noreply.github.com>2018-05-21 06:10:26 -0400
committerJesús Espino <jespinog@gmail.com>2018-05-21 12:10:26 +0200
commiteb78d273f39202046fa71555a5a19b0ec8a95cb3 (patch)
tree0781ec60222b3c926f88022f6416b8925e25b3ec /api4/team_test.go
parentc6ba5c32d62f8c1fd0e0669a3df0c844ec794590 (diff)
downloadchat-eb78d273f39202046fa71555a5a19b0ec8a95cb3.tar.gz
chat-eb78d273f39202046fa71555a5a19b0ec8a95cb3.tar.bz2
chat-eb78d273f39202046fa71555a5a19b0ec8a95cb3.zip
Refactors migrations check. (#8814)
Diffstat (limited to 'api4/team_test.go')
-rw-r--r--api4/team_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/api4/team_test.go b/api4/team_test.go
index a3f4af0cf..f08aa6ba9 100644
--- a/api4/team_test.go
+++ b/api4/team_test.go
@@ -2059,16 +2059,7 @@ func TestUpdateTeamScheme(t *testing.T) {
th.App.SetLicense(model.NewTestLicense(""))
- // Mark the migration as done.
- <-th.App.Srv.Store.System().PermanentDeleteByName(model.MIGRATION_KEY_ADVANCED_PERMISSIONS_PHASE_2)
- res := <-th.App.Srv.Store.System().Save(&model.System{Name: model.MIGRATION_KEY_ADVANCED_PERMISSIONS_PHASE_2, Value: "true"})
- assert.Nil(t, res.Err)
-
- // Un-mark the migration at the end of the test.
- defer func() {
- res := <-th.App.Srv.Store.System().PermanentDeleteByName(model.MIGRATION_KEY_ADVANCED_PERMISSIONS_PHASE_2)
- assert.Nil(t, res.Err)
- }()
+ th.App.SetPhase2PermissionsMigrationStatus(true)
team := &model.Team{
DisplayName: "Name",