Refactors migrations check. (#8814)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
c6ba5c32d6
Коммит
eb78d273f3
@@ -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",
|
||||
|
||||
Ссылка в новой задаче
Block a user