summaryrefslogtreecommitdiff
path: root/test/buildtool/common/repository_config.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/common/repository_config.test.cpp')
-rw-r--r--test/buildtool/common/repository_config.test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/buildtool/common/repository_config.test.cpp b/test/buildtool/common/repository_config.test.cpp
index 931ead30..6741b99f 100644
--- a/test/buildtool/common/repository_config.test.cpp
+++ b/test/buildtool/common/repository_config.test.cpp
@@ -88,11 +88,10 @@ template <class T>
// Read graph from CAS
[[nodiscard]] auto ReadGraph(Storage const& storage,
- std::string const& hash) -> nlohmann::json {
+ ArtifactDigest const& repo_key) -> nlohmann::json {
auto const& cas = storage.CAS();
- auto blob = cas.BlobPath(
- ArtifactDigest{hash, /*does not matter*/ 0, /*is_tree=*/false},
- /*is_executable=*/false);
+ auto blob = cas.BlobPath(repo_key,
+ /*is_executable=*/false);
REQUIRE(blob);
auto content = FileSystemManager::ReadFile(*blob);
REQUIRE(content);