1
0
Fork 0
forked from forgejo/forgejo

Use mount but not register for chi routes (#13555)

* Use mount but not register for chi routes

* Fix test

* Fix test

* Fix test

* Fix comment

* turn back unnecessary change

* Remove the timout middleware since some operations may spend much time.
This commit is contained in:
Lunny Xiao 2020-11-16 15:33:41 +08:00 committed by GitHub
parent 8c2b5feeae
commit 586bfb9f32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 16 deletions

View file

@ -68,7 +68,8 @@ func TestMain(m *testing.M) {
initIntegrationTest()
c = routes.NewChi()
routes.RegisterRoutes(c)
c.Mount("/", routes.NormalRoutes())
routes.DelegateToMacaron(c)
// integration test settings...
if setting.Cfg != nil {