fix broken code

This commit is contained in:
Marcus Efraimsson 2019-01-17 20:29:26 +01:00
parent 97c7963f17
commit 81879f0162
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ func setupScenarioContext(url string) *scenarioContext {
Delims: macaron.Delims{Left: "[[", Right: "]]"},
}))
sc.m.Use(middleware.GetContextHandler())
sc.m.Use(middleware.GetContextHandler(nil))
sc.m.Use(middleware.Sessioner(&session.Options{}, 0))
return sc

View File

@ -487,7 +487,7 @@ func middlewareScenario(desc string, fn scenarioFunc) {
Delims: macaron.Delims{Left: "[[", Right: "]]"},
}))
sc.m.Use(GetContextHandler())
sc.m.Use(GetContextHandler(nil))
// mock out gc goroutine
session.StartSessionGC = func() {}
sc.m.Use(Sessioner(&ms.Options{}, 0))

View File

@ -64,7 +64,7 @@ func recoveryScenario(desc string, url string, fn scenarioFunc) {
Delims: macaron.Delims{Left: "[[", Right: "]]"},
}))
sc.m.Use(GetContextHandler())
sc.m.Use(GetContextHandler(nil))
// mock out gc goroutine
session.StartSessionGC = func() {}
sc.m.Use(Sessioner(&ms.Options{}, 0))