diff --git a/test/unit/test/network_algorithms/run_algo_impl.cpp b/test/unit/test/network_algorithms/run_algo_impl.cpp index 8c5d9ae6c..c7137beb3 100644 --- a/test/unit/test/network_algorithms/run_algo_impl.cpp +++ b/test/unit/test/network_algorithms/run_algo_impl.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -170,12 +169,12 @@ struct mock_algo : sansio_algorithm, asio::coroutine next_action resume(error_code ec) { - reenter(*this) + BOOST_ASIO_CORO_REENTER(*this) { BOOST_TEST(ec == error_code()); st_->reader.prepare_read(seqnum); st_->writer.prepare_write(mock_message{}, seqnum); - yield return act; + BOOST_ASIO_CORO_YIELD return act; } return next_action(); }