summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/execution_api/bazel/bytestream_client.test.cpp')
-rw-r--r--test/buildtool/execution_api/bazel/bytestream_client.test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/buildtool/execution_api/bazel/bytestream_client.test.cpp b/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
index 285ec7d7..fea6edea 100644
--- a/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
+++ b/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
@@ -130,7 +130,7 @@ TEST_CASE("ByteStream Client: Transfer multiple blobs", "[execution_api]") {
blob.digest.hash(),
blob.digest.size_bytes());
},
- [](auto const& blob) { return blob.data; }));
+ [](auto const& blob) { return *blob.data; }));
SECTION("Download small blobs") {
std::vector<std::string> contents{};
@@ -146,9 +146,9 @@ TEST_CASE("ByteStream Client: Transfer multiple blobs", "[execution_api]") {
contents.emplace_back(std::move(data));
});
REQUIRE(contents.size() == 3);
- CHECK(contents[0] == foo.data);
- CHECK(contents[1] == bar.data);
- CHECK(contents[2] == baz.data);
+ CHECK(contents[0] == *foo.data);
+ CHECK(contents[1] == *bar.data);
+ CHECK(contents[2] == *baz.data);
}
}
@@ -183,7 +183,7 @@ TEST_CASE("ByteStream Client: Transfer multiple blobs", "[execution_api]") {
blob.digest.hash(),
blob.digest.size_bytes());
},
- [](auto const& blob) { return blob.data; }));
+ [](auto const& blob) { return *blob.data; }));
SECTION("Download large blobs") {
std::vector<std::string> contents{};
@@ -199,9 +199,9 @@ TEST_CASE("ByteStream Client: Transfer multiple blobs", "[execution_api]") {
contents.emplace_back(std::move(data));
});
REQUIRE(contents.size() == 3);
- CHECK(contents[0] == foo.data);
- CHECK(contents[1] == bar.data);
- CHECK(contents[2] == baz.data);
+ CHECK(contents[0] == *foo.data);
+ CHECK(contents[1] == *bar.data);
+ CHECK(contents[2] == *baz.data);
}
}
}