From 8aac1a0e2bf1e6c5b557102d62af15aab7d20739 Mon Sep 17 00:00:00 2001 From: Rohan Sharma <117426013+RS-labhub@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:25:11 +0530 Subject: [PATCH] [MM-61466] Fix errcheck issues in server/channels/app/post_persistent_notification_test.go (#29207) --- server/.golangci.yml | 1 - server/channels/app/post_persistent_notification_test.go | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/.golangci.yml b/server/.golangci.yml index c5a7199786..8b4dfec6d7 100644 --- a/server/.golangci.yml +++ b/server/.golangci.yml @@ -129,7 +129,6 @@ issues: channels/app/post.go|\ channels/app/post_helpers_test.go|\ channels/app/post_metadata.go|\ - channels/app/post_persistent_notification_test.go|\ channels/app/post_test.go|\ channels/app/security_update_check.go|\ channels/app/server.go|\ diff --git a/server/channels/app/post_persistent_notification_test.go b/server/channels/app/post_persistent_notification_test.go index a8f650f767..cf8b1b4ac5 100644 --- a/server/channels/app/post_persistent_notification_test.go +++ b/server/channels/app/post_persistent_notification_test.go @@ -198,7 +198,8 @@ func TestSendPersistentNotifications(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() - th.App.AddUserToChannel(th.Context, th.BasicUser2, th.BasicChannel, false) + _, appErr := th.App.AddUserToChannel(th.Context, th.BasicUser2, th.BasicChannel, false) + require.Nil(t, appErr) s := "Urgent" tr := true @@ -213,7 +214,7 @@ func TestSendPersistentNotifications(t *testing.T) { }, }, } - _, appErr := th.App.CreatePost(th.Context, p1, th.BasicChannel, model.CreatePostFlags{}) + _, appErr = th.App.CreatePost(th.Context, p1, th.BasicChannel, model.CreatePostFlags{}) require.Nil(t, appErr) err := th.App.SendPersistentNotifications()