20187: Tidy up test case.
[arvados.git] / lib / controller / localdb / login_oidc.go
index 8a1b8fd82b0d6a6c1c25de742eb61c42b7680f4c..65e2e250e54066e9276747fc156988b44247af5b 100644 (file)
@@ -340,7 +340,7 @@ func OIDCAccessTokenAuthorizer(cluster *arvados.Cluster, getdb func(context.Cont
        // We want ctrl to be nil if the chosen controller is not a
        // *oidcLoginController, so we can ignore the 2nd return value
        // of this type cast.
-       ctrl, _ := NewConn(cluster).loginController.(*oidcLoginController)
+       ctrl, _ := NewConn(context.Background(), cluster, getdb).loginController.(*oidcLoginController)
        cache, err := lru.New2Q(tokenCacheSize)
        if err != nil {
                panic(err)