summaryrefslogtreecommitdiff
path: root/tests/testutils/artifactshare.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/artifactshare.py')
-rw-r--r--tests/testutils/artifactshare.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testutils/artifactshare.py b/tests/testutils/artifactshare.py
index c7987e02c..d929a7b91 100644
--- a/tests/testutils/artifactshare.py
+++ b/tests/testutils/artifactshare.py
@@ -13,7 +13,7 @@ from multiprocessing import Process, Queue
from buildstream import _yaml
from buildstream._artifactcache.casserver import create_server
from buildstream._context import Context
-from buildstream._exceptions import ArtifactError
+from buildstream._exceptions import CASError
# ArtifactShare()
@@ -52,7 +52,7 @@ class ArtifactShare():
context.artifactdir = self.repodir
context.set_message_handler(self._message_handler)
- self.cas = context.artifactcache
+ self.cas = context.artifactcache.cas
self.total_space = total_space
self.free_space = free_space
@@ -144,7 +144,7 @@ class ArtifactShare():
if not os.path.exists(object_name):
return False
return True
- except ArtifactError:
+ except CASError:
return False
# close():