From b716a901802314ad57588b4b75f9ea785219827a Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 10 Sep 2024 12:16:35 +0200 Subject: Return ArtifactDigest from RepositoryConfig::RepositoryKey ...to prevent additional conversions to ArtifactDigest from plain strings. --- test/buildtool/common/repository_config.test.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/buildtool/common/repository_config.test.cpp') 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 // 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); -- cgit v1.2.3