Merge branch '21666-provision-test-improvement'
[arvados.git] / services / ws / permission_test.go
index 5e90881a03d7bb1c076d79c0d24c59f612919803..2a22eae609d4c154d5ccff8174ee316662b7da4c 100644 (file)
@@ -21,7 +21,7 @@ func (s *permSuite) TestCheck(c *check.C) {
        // Disable auto-retry
        client.Timeout = 0
 
-       pc := newPermChecker(*client).(*cachingPermChecker)
+       pc := newPermChecker(client).(*cachingPermChecker)
        setToken := func(label, token string) {
                c.Logf("...%s token %q", label, token)
                pc.SetToken(token)
@@ -73,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)