From bb2cf18be0aef7d6e394a0c6ff6d83eac737c60b Mon Sep 17 00:00:00 2001 From: Raoul Hidalgo Charman Date: Mon, 24 Jun 2019 15:56:31 +0100 Subject: Source cache uses new proto methods This changes the location of source refs from `cache/cas/refs` to `cache/sources_protos` and fixes tests that looked in the old reference place. Source cache now uses the new protocol buffer and grpc methods defined, for storing locally, and pushing and pulling to remotes. Part of #1038 --- tests/sourcecache/push.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/sourcecache/push.py') diff --git a/tests/sourcecache/push.py b/tests/sourcecache/push.py index 6282b6e60..23f5f1ca1 100644 --- a/tests/sourcecache/push.py +++ b/tests/sourcecache/push.py @@ -95,7 +95,7 @@ def test_source_push(cli, tmpdir, datafiles): assert sourcecache.contains(source) # check that's the remote CAS now has it - digest = share.cas.resolve_ref(source._get_source_name()) + digest = sourcecache.export(source)._get_digest() assert share.has_object(digest) -- cgit v1.2.1