summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bazel_network.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-23 14:41:26 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit1dda220300b704dfbe28dad9586246571c49c503 (patch)
tree5dab68bc60d88805300ff243ce29e4b454e6f34c /test/buildtool/execution_api/bazel/bazel_network.test.cpp
parentd5a957afddb68c216184dff0e90e16c083be1134 (diff)
downloadjustbuild-1dda220300b704dfbe28dad9586246571c49c503.tar.gz
BazelNetworkReader: Use ArtifactDigest in IncrementalReader
...and while there, pass digests needed to be read by pointer to IncrementalReader to avoid an extra copy.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_network.test.cpp')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_network.test.cpp4
1 files changed, 2 insertions, 2 deletions
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<ArtifactDigest> to_read{
foo.digest, bar.digest, baz.digest, bar.digest, foo.digest};
std::vector<ArtifactBlob> 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<ArtifactDigest> to_read{foo.digest, bar.digest};
std::vector<ArtifactBlob> blobs{};
- for (auto next : reader.ReadIncrementally(to_read)) {
+ for (auto next : reader.ReadIncrementally(&to_read)) {
blobs.insert(blobs.end(), next.begin(), next.end());
}