diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-29 17:29:49 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-30 17:17:09 +0200 |
commit | 013d83eed166049be110d47f00feb4c6af1315af (patch) | |
tree | d792e9f6a180337365f639a17c0e07b52b480b37 /test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | |
parent | 576e31959bb7550bdd2b348f5d096f4926e859c6 (diff) | |
download | justbuild-013d83eed166049be110d47f00feb4c6af1315af.tar.gz |
Use BazelDigestFactory to create bazel_re::Digest directly if needed
...bypassing ArtifactDigest functionality.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp index bd005497..e4772f7d 100644 --- a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp @@ -20,7 +20,7 @@ #include "catch2/catch_test_macros.hpp" #include "gsl/gsl" -#include "src/buildtool/common/artifact_digest.hpp" +#include "src/buildtool/common/bazel_digest_factory.hpp" #include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/bazel_msg/bazel_blob_container.hpp" @@ -52,8 +52,8 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") { HashFunction const hash_function{Compatibility::IsCompatible() ? HashFunction::Type::PlainSHA256 : HashFunction::Type::GitSHA1}; - auto digest = - ArtifactDigest::Create<ObjectType::File>(hash_function, content); + auto digest = BazelDigestFactory::HashDataAs<ObjectType::File>( + hash_function, content); // Valid blob BazelBlob blob{digest, content, /*is_exec=*/false}; |