justinli500 commented on code in PR #49855:
URL: https://github.com/apache/arrow/pull/49855#discussion_r4774400062
##########
cpp/src/arrow/io/memory_test.cc:
##########
@@ -810,21 +842,24 @@ TEST(RangeReadCache, Concurrency) {
{
internal::ReadRangeCache cache(file, {}, options);
ASSERT_OK(cache.Cache(ranges));
- std::vector<Future<std::shared_ptr<Buffer>>> futures;
+ std::vector<Future<std::optional<std::shared_ptr<Buffer>>>> futures;
for (const auto& range : ranges) {
futures.push_back(
cache.WaitFor({range}).Then([&cache, range]() { return
cache.Read(range); }));
}
for (auto fut : futures) {
- ASSERT_FINISHES_OK(fut);
+ ASSERT_OK_AND_ASSIGN(auto buffer, fut.result());
Review Comment:
Got it, I switched it to `ASSERT_FINISHES_OK_AND_ASSIGN`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]