X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/521e8ecf4ac93ac27c7bec97601c246e391daf43..3fa0a5500d5b58b5d0b9ea940dac85be2da079ec:/lib/controller/federation/login_test.go diff --git a/lib/controller/federation/login_test.go b/lib/controller/federation/login_test.go index 2de260fdc2..5353ebf0f5 100644 --- a/lib/controller/federation/login_test.go +++ b/lib/controller/federation/login_test.go @@ -43,7 +43,6 @@ func (s *LoginSuite) TestDeferToLoginCluster(c *check.C) { func (s *LoginSuite) TestLogout(c *check.C) { s.cluster.Services.Workbench1.ExternalURL = arvados.URL{Scheme: "https", Host: "workbench1.example.com"} s.cluster.Services.Workbench2.ExternalURL = arvados.URL{Scheme: "https", Host: "workbench2.example.com"} - s.cluster.Login.GoogleClientID = "zzzzzzzzzzzzzz" s.addHTTPRemote(c, "zhome", &arvadostest.APIStub{}) s.cluster.Login.LoginCluster = "zhome" // s.fed is already set by SetUpTest, but we need to @@ -63,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}}) }