func (s *permSuite) TestCheck(c *check.C) {
client := arvados.NewClientFromEnv()
- client.Timeout = 0 // disable auto-retry
- pc := newPermChecker(*client).(*cachingPermChecker)
+ // 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)
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)