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:
@ -59,7 +59,8 @@ func TestSessionFileCreation(t *testing.T) {
|
||||
defer func() {
|
||||
setting.SessionConfig.ProviderConfig = oldSessionConfig
|
||||
c = routes.NewChi()
|
||||
routes.RegisterRoutes(c)
|
||||
c.Mount("/", routes.NormalRoutes())
|
||||
routes.DelegateToMacaron(c)
|
||||
}()
|
||||
|
||||
var config session.Options
|
||||
@ -84,7 +85,8 @@ func TestSessionFileCreation(t *testing.T) {
|
||||
setting.SessionConfig.ProviderConfig = string(newConfigBytes)
|
||||
|
||||
c = routes.NewChi()
|
||||
routes.RegisterRoutes(c)
|
||||
c.Mount("/", routes.NormalRoutes())
|
||||
routes.DelegateToMacaron(c)
|
||||
|
||||
t.Run("NoSessionOnViewIssue", func(t *testing.T) {
|
||||
defer PrintCurrentTest(t)()
|
||||
|
Reference in New Issue
Block a user