diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-12-20 16:52:23 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-12-21 10:11:11 +0100 |
commit | 8ee25f5ac4b1ecda1d5ce262fc48ad0c0e03a308 (patch) | |
tree | c54faf42ee85909dc4459ce6bdc6e44cddce33b4 /test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | |
parent | 6c8230f3e3f48c7d02d7f885eeadfefe8545839f (diff) | |
download | justbuild-8ee25f5ac4b1ecda1d5ce262fc48ad0c0e03a308.tar.gz |
BazelCasClient::DoUploadBlobs: returns the count of the uploaded blobs...
...instead of the vector containing the digests of the uploaded
blobs. The returned vector was never inspected by the callers, except
for its size.
The tests have been accordingly amended.
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp')
-rw-r--r-- | test/buildtool/execution_api/bazel/bazel_cas_client.test.cpp | 12 |
1 files changed, 4 insertions, 8 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}; |