Skip to content

Commit

Permalink
try to fix (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
victimsnino authored Sep 4, 2024
1 parent 6fd2da6 commit e01a513
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/tests/rppgrpc/test_async_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ TEST_CASE("Async server")
if constexpr (requires { reactor->get_observer(); })
reactor->get_observer().on_completed();

CHECK(writer->Finish().ok());
const auto res = writer->Finish().ok();
CHECK(res);
wait(last);
}

Expand Down Expand Up @@ -92,7 +93,8 @@ TEST_CASE("Async server")
if constexpr (requires { reactor->get_observer(); })
reactor->get_observer().on_completed();

REQUIRE(writer->Finish().ok());
const auto res = writer->Finish().ok();
REQUIRE(res);

wait(last);
}
Expand All @@ -119,7 +121,8 @@ TEST_CASE("Async server")
REQUIRE(response.value() == i);
}
REQUIRE(!writer->Read(&response));
REQUIRE(writer->Finish().ok());
const auto res = writer->Finish().ok();
REQUIRE(res);
wait(last);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/tests/utils/rpp_trompeloil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace trompeloeil
inline void reporter<specialized>::sendOk(
const char* trompeloeil_mock_calls_done_correctly)
{
REQUIRE(trompeloeil_mock_calls_done_correctly != 0);
REQUIRE(trompeloeil_mock_calls_done_correctly);
}
} // namespace trompeloeil

Expand Down

0 comments on commit e01a513

Please sign in to comment.