From 013d83eed166049be110d47f00feb4c6af1315af Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 29 Aug 2024 17:29:49 +0200 Subject: Use BazelDigestFactory to create bazel_re::Digest directly if needed ...bypassing ArtifactDigest functionality. --- .../execution_api/bazel/bazel_execution_client.test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp') diff --git a/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp index 093c4eb1..c354316c 100644 --- a/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp @@ -17,7 +17,7 @@ #include #include "catch2/catch_test_macros.hpp" -#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/compatibility/compatibility.hpp" #include "src/buildtool/crypto/hash_function.hpp" @@ -35,8 +35,8 @@ TEST_CASE("Bazel internals: Execution Client", "[execution_api]") { ? HashFunction::Type::PlainSHA256 : HashFunction::Type::GitSHA1}; - auto test_digest = static_cast( - ArtifactDigest::Create(hash_function, content)); + auto test_digest = BazelDigestFactory::HashDataAs( + hash_function, content); auto auth_config = TestAuthConfig::ReadFromEnvironment(); REQUIRE(auth_config); @@ -119,8 +119,8 @@ TEST_CASE("Bazel internals: Execution Client using env variables", ? HashFunction::Type::PlainSHA256 : HashFunction::Type::GitSHA1}; - auto test_digest = static_cast( - ArtifactDigest::Create(hash_function, content)); + auto test_digest = BazelDigestFactory::HashDataAs( + hash_function, content); auto auth_config = TestAuthConfig::ReadFromEnvironment(); REQUIRE(auth_config); -- cgit v1.2.3