summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-28 15:33:52 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit5fa4f4f6843fefdc64918cdfb14bf2c287bd387c (patch)
tree12edde49bfa8676c3e75a10d85cadef9b661088a /test/buildtool/execution_api/bazel
parent477c7d5e496b8eb5113b3b51f7152e05eae51fd7 (diff)
downloadjustbuild-5fa4f4f6843fefdc64918cdfb14bf2c287bd387c.tar.gz
BazelNetwork: Use unordered_set in UploadBlobs instead of BazelBlobContainer
Diffstat (limited to 'test/buildtool/execution_api/bazel')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_network.test.cpp6
1 files changed, 4 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 1f504110..60393100 100644
--- a/test/buildtool/execution_api/bazel/bazel_network.test.cpp
+++ b/test/buildtool/execution_api/bazel/bazel_network.test.cpp
@@ -15,9 +15,11 @@
#include "src/buildtool/execution_api/remote/bazel/bazel_network.hpp"
#include <cstddef>
+#include <functional>
#include <memory>
#include <optional>
#include <string>
+#include <unordered_set>
#include <vector>
#include <grpc/grpc.h>
@@ -82,7 +84,7 @@ TEST_CASE("Bazel network: write/read blobs", "[execution_api]") {
/*is_exec=*/false};
// Search blobs via digest
- REQUIRE(network.UploadBlobs(BazelBlobContainer{{foo, bar, baz}}));
+ REQUIRE(network.UploadBlobs({foo, bar, baz}));
// Read blobs in order
auto reader = network.CreateReader();
@@ -141,7 +143,7 @@ TEST_CASE("Bazel network: read blobs with unknown size", "[execution_api]") {
/*is_exec=*/false};
// Upload blobs
- REQUIRE(network.UploadBlobs(BazelBlobContainer{{foo, bar}}));
+ REQUIRE(network.UploadBlobs({foo, bar}));
// Set size to unknown
foo.digest.set_size_bytes(0);