Skip to content

Commit

Permalink
fix(c++): Add REQUIRE to check maybe_reader status (#524)
Browse files Browse the repository at this point in the history

Add a REQUIRE to make sure maybe_reader status is ok

---------

Signed-off-by: Haoran Yu <[email protected]>
Co-authored-by: Haoran Yu <[email protected]>
  • Loading branch information
yuhaoran1214 and yuhaoran1214 authored Jun 18, 2024
1 parent fa46a2b commit 8d5111f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/test/test_arrow_chunk_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ TEST_CASE_METHOD(GlobalFixture, "ArrowChunkReader") {
auto maybe_reader = AdjListArrowChunkReader::Make(
graph_info, src_label, edge_label, dst_label,
AdjListType::ordered_by_source);
REQUIRE(maybe_reader.status().ok());
auto reader = maybe_reader.value();
// check reader start from vertex chunk 0
auto result = reader->GetChunk();
Expand Down

0 comments on commit 8d5111f

Please sign in to comment.