mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-61103] Fix errcheck issues in server/channels/app/channel_category_test.go (#28790)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
parent
834d94ab39
commit
ebb0178c13
@ -98,7 +98,6 @@ issues:
|
||||
channels/app/busy_test.go|\
|
||||
channels/app/channel.go|\
|
||||
channels/app/channel_bookmark_test.go|\
|
||||
channels/app/channel_category_test.go|\
|
||||
channels/app/channel_test.go|\
|
||||
channels/app/config_test.go|\
|
||||
channels/app/desktop_login.go|\
|
||||
|
@ -17,9 +17,15 @@ func TestSidebarCategory(t *testing.T) {
|
||||
defer th.TearDown()
|
||||
|
||||
basicChannel2 := th.CreateChannel(th.Context, th.BasicTeam)
|
||||
defer th.App.PermanentDeleteChannel(th.Context, basicChannel2)
|
||||
defer func() {
|
||||
err := th.App.PermanentDeleteChannel(th.Context, basicChannel2)
|
||||
require.Nil(t, err)
|
||||
}()
|
||||
user := th.CreateUser()
|
||||
defer th.App.Srv().Store().User().PermanentDelete(th.Context, user.Id)
|
||||
defer func() {
|
||||
err := th.App.Srv().Store().User().PermanentDelete(th.Context, user.Id)
|
||||
require.NoError(t, err)
|
||||
}()
|
||||
th.LinkUserToTeam(user, th.BasicTeam)
|
||||
th.AddUserToChannel(user, basicChannel2)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user