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

This commit is contained in:
Ivy Gesare 2024-11-05 14:13:41 +03:00 committed by GitHub
parent 2975e529d5
commit cb8f152089
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -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|\

View File

@ -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)