summaryrefslogtreecommitdiffstats
path: root/modules/test
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-30 16:55:53 +0800
committerGitHub <noreply@github.com>2021-01-30 10:55:53 +0200
commit5e20fd6dbf52ede60ed9ac7944db0d3f6769cf86 (patch)
tree519259f05f7e7fc4dd1df4da521e000ce469567b /modules/test
parent0e0424c8ecaf6fa3cdd1fcfc154f188014c63dd8 (diff)
downloadgitea-5e20fd6dbf52ede60ed9ac7944db0d3f6769cf86.tar.gz
gitea-5e20fd6dbf52ede60ed9ac7944db0d3f6769cf86.zip
Move middlewares to web/middleware (#14480)
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'modules/test')
-rw-r--r--modules/test/context_tests.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go
index e219a8e56a..a15c74d828 100644
--- a/modules/test/context_tests.go
+++ b/modules/test/context_tests.go
@@ -16,7 +16,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
- "code.gitea.io/gitea/modules/middlewares"
+ "code.gitea.io/gitea/modules/web/middleware"
"github.com/go-chi/chi"
"github.com/stretchr/testify/assert"
@@ -29,7 +29,7 @@ func MockContext(t *testing.T, path string) *context.Context {
var ctx = context.Context{
Render: &mockRender{},
Data: make(map[string]interface{}),
- Flash: &middlewares.Flash{
+ Flash: &middleware.Flash{
Values: make(url.Values),
},
Resp: context.NewResponse(resp),