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")) }