[MM-61094] Fix errcheck issues in server/channels/app/app_test.go (#29124)
Этот коммит содержится в:
@@ -84,7 +84,6 @@ issues:
|
|||||||
channels/api4/team_test.go|\
|
channels/api4/team_test.go|\
|
||||||
channels/api4/user_test.go|\
|
channels/api4/user_test.go|\
|
||||||
channels/api4/websocket_test.go|\
|
channels/api4/websocket_test.go|\
|
||||||
channels/app/app_test.go|\
|
|
||||||
channels/app/auto_responder_test.go|\
|
channels/app/auto_responder_test.go|\
|
||||||
channels/app/bot_test.go|\
|
channels/app/bot_test.go|\
|
||||||
channels/app/brand.go|\
|
channels/app/brand.go|\
|
||||||
|
|||||||
@@ -85,7 +85,8 @@ func TestDoAdvancedPermissionsMigration(t *testing.T) {
|
|||||||
|
|
||||||
th.ResetRoleMigration()
|
th.ResetRoleMigration()
|
||||||
|
|
||||||
th.App.DoAdvancedPermissionsMigration()
|
err := th.App.DoAdvancedPermissionsMigration()
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
roleNames := []string{
|
roleNames := []string{
|
||||||
"system_user",
|
"system_user",
|
||||||
@@ -232,7 +233,8 @@ func TestDoAdvancedPermissionsMigration(t *testing.T) {
|
|||||||
th.App.Srv().SetLicense(model.NewTestLicense())
|
th.App.Srv().SetLicense(model.NewTestLicense())
|
||||||
|
|
||||||
// Check the migration doesn't change anything if run again.
|
// 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)
|
roles2, err2 := th.App.GetRolesByNames(roleNames)
|
||||||
assert.Nil(t, err2)
|
assert.Nil(t, err2)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user