From df3560ed9c08a22041cf4eff9f583a74bb8b95d1 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Tue, 29 Apr 2025 11:08:38 +0200 Subject: [PATCH] [MM-61086] Fix errcheck linter issue in batch_worker_test.go (#30644) --- server/.golangci.yml | 1 - server/channels/jobs/batch_worker_test.go | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index 52a52f59590..3d03fc04608 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -102,7 +102,6 @@ issues: channels/app/slashcommands/helper_test.go|\ channels/app/team_test.go|\ channels/app/upload.go|\ - channels/jobs/batch_worker_test.go|\ channels/store/localcachelayer/channel_layer.go|\ channels/store/localcachelayer/channel_layer_test.go|\ channels/store/localcachelayer/emoji_layer.go|\ diff --git a/server/channels/jobs/batch_worker_test.go b/server/channels/jobs/batch_worker_test.go index c022ea8db1a..36e61701b70 100644 --- a/server/channels/jobs/batch_worker_test.go +++ b/server/channels/jobs/batch_worker_test.go @@ -54,7 +54,8 @@ func TestBatchWorker(t *testing.T) { batchNumber++ job.Data["batch_number"] = strconv.Itoa(batchNumber) - th.Server.Jobs.SetJobProgress(job, 0) + appErr := th.Server.Jobs.SetJobProgress(job, 0) + require.Nil(t, appErr) } t.Run("stop after first batch", func(t *testing.T) {