X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba418300c50e1375ca9938562579b7bd6bf9490d..HEAD:/services/ws/permission_test.go diff --git a/services/ws/permission_test.go b/services/ws/permission_test.go index 023656c01f..2a22eae609 100644 --- a/services/ws/permission_test.go +++ b/services/ws/permission_test.go @@ -17,7 +17,11 @@ var _ = check.Suite(&permSuite{}) type permSuite struct{} func (s *permSuite) TestCheck(c *check.C) { - pc := newPermChecker(*(arvados.NewClientFromEnv())).(*cachingPermChecker) + client := arvados.NewClientFromEnv() + // Disable auto-retry + client.Timeout = 0 + + pc := newPermChecker(client).(*cachingPermChecker) setToken := func(label, token string) { c.Logf("...%s token %q", label, token) pc.SetToken(token) @@ -69,7 +73,7 @@ func (s *permSuite) TestCheck(c *check.C) { pc.SetToken(arvadostest.ActiveToken) c.Log("...network error") - pc.Client.APIHost = "127.0.0.1:9" + pc.ac.APIHost = "127.0.0.1:9" wantError(arvadostest.UserAgreementCollection) wantError(arvadostest.FooBarDirCollection)