diff --git a/server/.golangci.yml b/server/.golangci.yml index 72832568c4..f513845e61 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -76,7 +76,6 @@ issues: channels/api4/data_retention.go|\ channels/api4/export_test.go|\ channels/api4/file_test.go|\ - channels/api4/import_test.go|\ channels/api4/ip_filtering_test.go|\ channels/api4/job_test.go|\ channels/api4/license.go|\ diff --git a/server/channels/api4/import_test.go b/server/channels/api4/import_test.go index 1f004c3818..cfbe0ec4ab 100644 --- a/server/channels/api4/import_test.go +++ b/server/channels/api4/import_test.go @@ -127,7 +127,10 @@ func TestImportInLocalMode(t *testing.T) { received, _, err := th.SystemAdminClient.CreateJob(context.Background(), job) require.NoError(t, err) - defer th.App.Srv().Store().Job().Delete(received.Id) + defer func() { + _, err = th.App.Srv().Store().Job().Delete(received.Id) + require.NoError(t, err, "Failed to delete job") + }() cnt1, err := th.App.Srv().Store().Post().AnalyticsPostCount(&model.PostCountOptions{UsersPostsOnly: true}) require.NoError(t, err)