[MM-61094] Fix errcheck issues in server/channels/app/app_test.go (#29124)

Этот коммит содержится в:
Ivy Gesare
2024-11-05 14:13:41 +03:00
коммит произвёл GitHub
родитель 2975e529d5
Коммит cb8f152089
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@@ -84,7 +84,6 @@ issues:
channels/api4/team_test.go|\
channels/api4/user_test.go|\
channels/api4/websocket_test.go|\
channels/app/app_test.go|\
channels/app/auto_responder_test.go|\
channels/app/bot_test.go|\
channels/app/brand.go|\

Просмотреть файл

@@ -85,7 +85,8 @@ func TestDoAdvancedPermissionsMigration(t *testing.T) {
th.ResetRoleMigration()
th.App.DoAdvancedPermissionsMigration()
err := th.App.DoAdvancedPermissionsMigration()
require.NoError(t, err)
roleNames := []string{
"system_user",
@@ -232,7 +233,8 @@ func TestDoAdvancedPermissionsMigration(t *testing.T) {
th.App.Srv().SetLicense(model.NewTestLicense())
// Check the migration doesn't change anything if run again.
th.App.DoAdvancedPermissionsMigration()
err = th.App.DoAdvancedPermissionsMigration()
require.NoError(t, err)
roles2, err2 := th.App.GetRolesByNames(roleNames)
assert.Nil(t, err2)