summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp12
-rw-r--r--test/utils/remote_execution/bazel_action_creator.hpp4
2 files changed, 6 insertions, 10 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 8d21dbb3..d120360b 100644
--- a/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
+++ b/test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp
@@ -42,10 +42,8 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") {
if (!digests.empty()) {
// Upload blob, if not found
std::vector<BazelBlob> to_upload{blob};
- CHECK(cas_client
- .BatchUpdateBlobs(
- instance_name, to_upload.begin(), to_upload.end())
- .size() == 1);
+ CHECK(cas_client.BatchUpdateBlobs(
+ instance_name, to_upload.begin(), to_upload.end()) == 1U);
}
// Read blob
@@ -73,10 +71,8 @@ TEST_CASE("Bazel internals: CAS Client", "[execution_api]") {
// Try upload faulty blob
std::vector<BazelBlob> to_upload{faulty_blob};
- CHECK(cas_client
- .BatchUpdateBlobs(
- instance_name, to_upload.begin(), to_upload.end())
- .empty());
+ CHECK(cas_client.BatchUpdateBlobs(
+ instance_name, to_upload.begin(), to_upload.end()) == 0U);
// Read blob via faulty digest
std::vector<bazel_re::Digest> to_read{faulty_digest};
diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp
index 0ee251c8..1fdc86c2 100644
--- a/test/utils/remote_execution/bazel_action_creator.hpp
+++ b/test/utils/remote_execution/bazel_action_creator.hpp
@@ -79,8 +79,8 @@
BazelCasClient cas_client(info->host, info->port);
- if (cas_client.BatchUpdateBlobs(instance_name, blobs.begin(), blobs.end())
- .size() == blobs.size()) {
+ if (cas_client.BatchUpdateBlobs(
+ instance_name, blobs.begin(), blobs.end()) == blobs.size()) {
return std::make_unique<bazel_re::Digest>(action_id);
}
return nullptr;