From e7e1d7d7ce39b56a8932c6acf49948c23a49166d Mon Sep 17 00:00:00 2001 From: Sumedha Koranga Date: Thu, 14 Nov 2024 13:04:41 +0530 Subject: [PATCH] [MM-61513] Fix errcheck issues in channels/app/users/users_test.go fixes #29179 (#29188) Co-authored-by: Ben Schumacher --- server/.golangci.yml | 1 - server/channels/app/users/users_test.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index fab93c4da4..5b0b2f7809 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -153,7 +153,6 @@ issues: channels/app/user.go|\ channels/app/user_test.go|\ channels/app/users/helper_test.go|\ - channels/app/users/users_test.go|\ channels/app/web_broadcast_hooks_test.go|\ channels/app/webhook_test.go|\ channels/jobs/batch_worker_test.go|\ diff --git a/server/channels/app/users/users_test.go b/server/channels/app/users/users_test.go index 38ad1b0839..6e13618aea 100644 --- a/server/channels/app/users/users_test.go +++ b/server/channels/app/users/users_test.go @@ -56,7 +56,8 @@ func TestFirstUserPromoted(t *testing.T) { require.Equal(t, model.SystemUserRoleId, user2.Roles) - th.dbStore.User().PermanentDelete(th.Context, user.Id) + err = th.dbStore.User().PermanentDelete(th.Context, user.Id) + require.NoError(t, err) b := &model.Bot{ UserId: user2.Id,