From 1dda220300b704dfbe28dad9586246571c49c503 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 23 Jan 2025 14:41:26 +0100 Subject: BazelNetworkReader: Use ArtifactDigest in IncrementalReader ...and while there, pass digests needed to be read by pointer to IncrementalReader to avoid an extra copy. --- test/buildtool/execution_api/bazel/bazel_network.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/execution_api/bazel/bazel_network.test.cpp') diff --git a/test/buildtool/execution_api/bazel/bazel_network.test.cpp b/test/buildtool/execution_api/bazel/bazel_network.test.cpp index 5444c5d5..50564163 100644 --- a/test/buildtool/execution_api/bazel/bazel_network.test.cpp +++ b/test/buildtool/execution_api/bazel/bazel_network.test.cpp @@ -102,7 +102,7 @@ TEST_CASE("Bazel network: write/read blobs", "[execution_api]") { std::vector to_read{ foo.digest, bar.digest, baz.digest, bar.digest, foo.digest}; std::vector blobs{}; - for (auto next : reader.ReadIncrementally(to_read)) { + for (auto next : reader.ReadIncrementally(&to_read)) { blobs.insert(blobs.end(), next.begin(), next.end()); } @@ -169,7 +169,7 @@ TEST_CASE("Bazel network: read blobs with unknown size", "[execution_api]") { auto reader = network.CreateReader(); std::vector to_read{foo.digest, bar.digest}; std::vector blobs{}; - for (auto next : reader.ReadIncrementally(to_read)) { + for (auto next : reader.ReadIncrementally(&to_read)) { blobs.insert(blobs.end(), next.begin(), next.end()); } -- cgit v1.2.3