Mm 16623 fix all initialism errors in channels/app and channels/api4 dir (#25743)
* updated go mod and sum files * fixed var-naming errors in channels/app and channels/api4 dir * Revert "updated go mod and sum files" This reverts commit 088dd00a848c2c31952c29f0a2a28a9fb47fc3f7. * renamed a cost .
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
293caec0c7
Коммит
ebdc964161
@@ -79,7 +79,7 @@ func TestSaveReaction(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("react-to-not-existing-post-id", func(t *testing.T) {
|
||||
reaction.PostId = GenerateTestId()
|
||||
reaction.PostId = GenerateTestID()
|
||||
|
||||
_, resp, err := client.SaveReaction(context.Background(), reaction)
|
||||
require.Error(t, err)
|
||||
@@ -96,7 +96,7 @@ func TestSaveReaction(t *testing.T) {
|
||||
|
||||
t.Run("react-as-not-existing-user-id", func(t *testing.T) {
|
||||
reaction.PostId = postId
|
||||
reaction.UserId = GenerateTestId()
|
||||
reaction.UserId = GenerateTestID()
|
||||
|
||||
_, resp, err := client.SaveReaction(context.Background(), reaction)
|
||||
require.Error(t, err)
|
||||
@@ -254,7 +254,7 @@ func TestGetReactions(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("get-reactions-of-not-existing-post-id", func(t *testing.T) {
|
||||
_, resp, err := client.GetReactions(context.Background(), GenerateTestId())
|
||||
_, resp, err := client.GetReactions(context.Background(), GenerateTestID())
|
||||
require.Error(t, err)
|
||||
CheckForbiddenStatus(t, resp)
|
||||
})
|
||||
@@ -375,7 +375,7 @@ func TestDeleteReaction(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("delete-reaction-from-not-existing-post-id", func(t *testing.T) {
|
||||
r1.PostId = GenerateTestId()
|
||||
r1.PostId = GenerateTestID()
|
||||
resp, err := client.DeleteReaction(context.Background(), r1)
|
||||
require.Error(t, err)
|
||||
CheckForbiddenStatus(t, resp)
|
||||
@@ -391,7 +391,7 @@ func TestDeleteReaction(t *testing.T) {
|
||||
|
||||
t.Run("delete-reaction-from-not-existing-user-id", func(t *testing.T) {
|
||||
r1.PostId = postId
|
||||
r1.UserId = GenerateTestId()
|
||||
r1.UserId = GenerateTestID()
|
||||
|
||||
resp, err := client.DeleteReaction(context.Background(), r1)
|
||||
require.Error(t, err)
|
||||
|
||||
Ссылка в новой задаче
Block a user