mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-61094] Fix errcheck issues in server/channels/app/app_test.go (#29124)
This commit is contained in:
parent
2975e529d5
commit
cb8f152089
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user