Explorar o código

fix broken code

Marcus Efraimsson %!s(int64=7) %!d(string=hai) anos
pai
achega
81879f0162

+ 1 - 1
pkg/api/common_test.go

@@ -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

+ 1 - 1
pkg/middleware/middleware_test.go

@@ -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))

+ 1 - 1
pkg/middleware/recovery_test.go

@@ -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))