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,