[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:
Rohan Sharma 2024-10-24 17:28:01 +05:30 committed by GitHub
parent 834d94ab39
commit ebb0178c13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

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

View File

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