X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c2cba51503a0e41ddd68083993e32fe085e49a7f..b91d06bf3ede4b9afa5a74070a4f8ca95d16f629:/services/ws/permission_test.go?ds=sidebyside 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)