From 8249e93a14f628bb0e89fe3be678e4966539944e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 22 Aug 2023 13:30:04 +0200 Subject: [PATCH] [MODERATION] Show graceful error on comment creation (squash) typo (cherry picked from commit 1588d4834a37a744f092f2aeea6c9ef4795d7356) (cherry picked from commit d510ea52d091503e841d66f2f604348add8b4535) --- tests/integration/block_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/block_test.go b/tests/integration/block_test.go index 37d0db400a..3a45bf5db5 100644 --- a/tests/integration/block_test.go +++ b/tests/integration/block_test.go @@ -17,7 +17,6 @@ import ( "code.gitea.io/gitea/models/unittest" user_model "code.gitea.io/gitea/models/user" forgejo_context "code.gitea.io/gitea/modules/context" - gitea_context "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/translation" "code.gitea.io/gitea/tests" @@ -154,7 +153,7 @@ func TestBlockCommentCreation(t *testing.T) { }) session.MakeRequest(t, req, http.StatusOK) - flashCookie := session.GetCookie(gitea_context.CookieNameFlash) + flashCookie := session.GetCookie(forgejo_context.CookieNameFlash) assert.NotNil(t, flashCookie) assert.EqualValues(t, expectedFlash, flashCookie.Value) }) @@ -177,7 +176,7 @@ func TestBlockCommentCreation(t *testing.T) { }) session.MakeRequest(t, req, http.StatusOK) - flashCookie := session.GetCookie(gitea_context.CookieNameFlash) + flashCookie := session.GetCookie(forgejo_context.CookieNameFlash) assert.NotNil(t, flashCookie) assert.EqualValues(t, expectedFlash, flashCookie.Value) })