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()