diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2022-07-11 19:55:10 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-08-05 14:41:31 +0200 |
commit | ee6f54124360d8a72b9b545dcc581f3c80d3c8a9 (patch) | |
tree | 20ab0e5e0e8132c30da0f99c401750d712fe00d0 /test/buildtool/common/repository_config.test.cpp | |
parent | 76c17ffa9e079fdd3d2a7159c02a1d9593e11930 (diff) | |
download | justbuild-ee6f54124360d8a72b9b545dcc581f3c80d3c8a9.tar.gz |
Modified artifact digest to provide wire digest on demand
Diffstat (limited to 'test/buildtool/common/repository_config.test.cpp')
-rw-r--r-- | test/buildtool/common/repository_config.test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/buildtool/common/repository_config.test.cpp b/test/buildtool/common/repository_config.test.cpp index 19ab25c2..bd2a0e0b 100644 --- a/test/buildtool/common/repository_config.test.cpp +++ b/test/buildtool/common/repository_config.test.cpp @@ -59,7 +59,8 @@ template <class T> // Read graph from CAS [[nodiscard]] auto ReadGraph(std::string const& hash) -> nlohmann::json { auto& cas = LocalCAS<ObjectType::File>::Instance(); - auto blob = cas.BlobPath(ArtifactDigest{hash, /*does not matter*/ 0}); + auto blob = cas.BlobPath( + ArtifactDigest{hash, /*does not matter*/ 0, /*is_tree=*/false}); REQUIRE(blob); auto content = FileSystemManager::ReadFile(*blob); REQUIRE(content); |