From 08bdc8b9d55839b2b715db0ad5467c98d390a897 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Sat, 22 Oct 2022 18:53:26 +0000 Subject: [PATCH] Update test Signed-off-by: Yarden Shoham --- services/markup/processorhelper_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/markup/processorhelper_test.go b/services/markup/processorhelper_test.go index 386465bc9189..25b7e1a18f70 100644 --- a/services/markup/processorhelper_test.go +++ b/services/markup/processorhelper_test.go @@ -5,16 +5,16 @@ package markup import ( - "context" "testing" "code.gitea.io/gitea/models/unittest" + "code.gitea.io/gitea/modules/context" "github.com/stretchr/testify/assert" ) func TestProcessorHelper(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) - assert.True(t, ProcessorHelper().IsUsernameMentionable(context.Background(), "user10")) - assert.False(t, ProcessorHelper().IsUsernameMentionable(context.Background(), "no-such-user")) + assert.True(t, ProcessorHelper().IsUsernameMentionable(&context.Context{}, "user10")) + assert.False(t, ProcessorHelper().IsUsernameMentionable(&context.Context{}, "no-such-user")) }