X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ed4d8462e763eb1d8c8f1548912495563cd9288f..94c0345781dcb2a7fca6931bcd35a87766d65996:/lib/controller/auth_test.go diff --git a/lib/controller/auth_test.go b/lib/controller/auth_test.go index 69458655ba..1752411467 100644 --- a/lib/controller/auth_test.go +++ b/lib/controller/auth_test.go @@ -8,6 +8,7 @@ import ( "context" "encoding/json" "fmt" + "net" "net/http" "net/http/httptest" "os" @@ -99,9 +100,10 @@ func (s *AuthSuite) SetUpTest(c *check.C) { s.testHandler = &Handler{Cluster: cluster} s.testServer = newServerFromIntegrationTestEnv(c) - s.testServer.Server.Handler = httpserver.HandlerWithContext( - ctxlog.Context(context.Background(), s.log), - httpserver.AddRequestIDs(httpserver.LogRequests(s.testHandler))) + s.testServer.Server.BaseContext = func(net.Listener) context.Context { + return ctxlog.Context(context.Background(), s.log) + } + s.testServer.Server.Handler = httpserver.AddRequestIDs(httpserver.LogRequests(s.testHandler)) c.Assert(s.testServer.Start(), check.IsNil) }