19146: Remove unneeded special case checks, explain the needed one.
[arvados.git] / lib / controller / federation / login_test.go
index 007f5df8b4726c7f24ebbcdf3b6ac0c46a202fbd..c05ebfce69820b3be781a3d18be8a591aaa94eb2 100644 (file)
@@ -47,7 +47,7 @@ func (s *LoginSuite) TestLogout(c *check.C) {
        s.cluster.Login.LoginCluster = "zhome"
        // s.fed is already set by SetUpTest, but we need to
        // reinitialize with the above config changes.
-       s.fed = New(s.cluster)
+       s.fed = New(s.cluster, nil)
 
        returnTo := "https://app.example.com/foo?bar"
        for _, trial := range []struct {
@@ -62,7 +62,7 @@ func (s *LoginSuite) TestLogout(c *check.C) {
                {token: "v2/zhome-aaaaa-aaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", returnTo: returnTo, target: "http://" + s.cluster.RemoteClusters["zhome"].Host + "/logout?" + url.Values{"return_to": {returnTo}}.Encode()},
        } {
                c.Logf("trial %#v", trial)
-               ctx := context.Background()
+               ctx := s.ctx
                if trial.token != "" {
                        ctx = auth.NewContext(ctx, &auth.Credentials{Tokens: []string{trial.token}})
                }