forked from boostorg/mqtt5
Async.MQTT5 -> Boost.MQTT5
Summary: related to T15996 folder structure include/async_mqtt5 -> include/boost/mqtt5 namespace async_mqtt5 -> namespace boost::mqtt5 all tabs replaced with 4 spaces (because tabs are banned) boost-like order of includes TODO: fix all docs Reviewers: ivica Reviewed By: ivica Subscribers: iljazovic, miljen Differential Revision: https://repo.mireo.local/D33152
This commit is contained in:
1 parent
1225cc778a
commit
afc270f10e
136 files changed
+17834
-17859
No files matched your search
+207
-209
@@ -5,273 +5,271 @@
|
||||
// (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <boost/asio/as_tuple.hpp>
|
||||
#include <boost/asio/bind_cancellation_slot.hpp>
|
||||
#include <boost/asio/cancellation_signal.hpp>
|
||||
#include <boost/asio/co_spawn.hpp>
|
||||
#include <boost/asio/detached.hpp>
|
||||
#include <boost/asio/io_context.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/asio/steady_timer.hpp>
|
||||
#include <boost/asio/use_awaitable.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/mqtt5.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <async_mqtt5.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
#include "test_common/message_exchange.hpp"
|
||||
#include "test_common/test_service.hpp"
|
||||
#include "test_common/test_stream.hpp"
|
||||
|
||||
using namespace async_mqtt5;
|
||||
using namespace boost::mqtt5;
|
||||
|
||||
namespace async_mqtt5::test {
|
||||
namespace boost::mqtt5::test {
|
||||
|
||||
enum operation_type {
|
||||
async_run = 1,
|
||||
publish,
|
||||
receive,
|
||||
subscribe,
|
||||
unsubscribe,
|
||||
disconnect
|
||||
async_run = 1,
|
||||
publish,
|
||||
receive,
|
||||
subscribe,
|
||||
unsubscribe,
|
||||
disconnect
|
||||
};
|
||||
|
||||
enum cancel_type {
|
||||
client_cancel = 1,
|
||||
signal_emit
|
||||
client_cancel = 1,
|
||||
signal_emit
|
||||
};
|
||||
|
||||
} // end namespace async_mqtt5::test
|
||||
} // end namespace boost::mqtt5::test
|
||||
|
||||
using stream_type = asio::ip::tcp::socket;
|
||||
using client_type = mqtt_client<stream_type>;
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::async_run, bool> = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::async_run, bool> = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
c.async_run(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::publish, bool> = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::publish, bool> = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(asio::detached);
|
||||
c.async_publish<qos_e::at_most_once>("topic", "payload", retain_e::no, publish_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
c.async_run(asio::detached);
|
||||
c.async_publish<qos_e::at_most_once>("topic", "payload", retain_e::no, publish_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::receive, bool> = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::receive, bool> = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(asio::detached);
|
||||
c.async_receive(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&c, &handlers_called](
|
||||
error_code ec, std::string t, std::string p, publish_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST(t == "");
|
||||
BOOST_TEST(p == "");
|
||||
c.async_run(asio::detached);
|
||||
c.async_receive(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&c, &handlers_called](
|
||||
error_code ec, std::string t, std::string p, publish_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST(t == "");
|
||||
BOOST_TEST(p == "");
|
||||
|
||||
// right now, emitting a terminal signal on async_receive
|
||||
// does NOT cancel the client
|
||||
c.cancel();
|
||||
}
|
||||
)
|
||||
);
|
||||
// right now, emitting a terminal signal on async_receive
|
||||
// does NOT cancel the client
|
||||
c.cancel();
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::subscribe, bool> = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::subscribe, bool> = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(asio::detached);
|
||||
c.async_subscribe(
|
||||
subscribe_topic { "topic", subscribe_options {} }, subscribe_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](
|
||||
error_code ec, std::vector<reason_code> rcs, suback_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST_REQUIRE(rcs.size() == 1u);
|
||||
BOOST_TEST(rcs[0] == reason_codes::empty);
|
||||
}
|
||||
)
|
||||
);
|
||||
c.async_run(asio::detached);
|
||||
c.async_subscribe(
|
||||
subscribe_topic { "topic", subscribe_options {} }, subscribe_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](
|
||||
error_code ec, std::vector<reason_code> rcs, suback_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST_REQUIRE(rcs.size() == 1u);
|
||||
BOOST_TEST(rcs[0] == reason_codes::empty);
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::unsubscribe, bool > = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::unsubscribe, bool > = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(asio::detached);
|
||||
c.async_unsubscribe(
|
||||
"topic" ,unsubscribe_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](
|
||||
error_code ec, std::vector<reason_code> rcs, unsuback_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST_REQUIRE(rcs.size() == 1u);
|
||||
BOOST_TEST(rcs[0] == reason_codes::empty);
|
||||
}
|
||||
)
|
||||
);
|
||||
c.async_run(asio::detached);
|
||||
c.async_unsubscribe(
|
||||
"topic" ,unsubscribe_props {},
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](
|
||||
error_code ec, std::vector<reason_code> rcs, unsuback_props
|
||||
) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
BOOST_TEST_REQUIRE(rcs.size() == 1u);
|
||||
BOOST_TEST(rcs[0] == reason_codes::empty);
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template <
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::disconnect, bool> = true
|
||||
test::operation_type op_type,
|
||||
std::enable_if_t<op_type == test::operation_type::disconnect, bool> = true
|
||||
>
|
||||
void setup_cancel_op_test_case(
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
client_type& c, asio::cancellation_signal& signal, int& handlers_called
|
||||
) {
|
||||
c.async_run(asio::detached);
|
||||
c.async_disconnect(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
c.async_run(asio::detached);
|
||||
c.async_disconnect(
|
||||
asio::bind_cancellation_slot(
|
||||
signal.slot(),
|
||||
[&handlers_called](error_code ec) {
|
||||
++handlers_called;
|
||||
BOOST_TEST(ec == asio::error::operation_aborted);
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
template<test::cancel_type c_type, test::operation_type op_type>
|
||||
void run_cancel_op_test() {
|
||||
using namespace test;
|
||||
using namespace test;
|
||||
|
||||
constexpr int expected_handlers_called = 1;
|
||||
int handlers_called = 0;
|
||||
constexpr int expected_handlers_called = 1;
|
||||
int handlers_called = 0;
|
||||
|
||||
asio::io_context ioc;
|
||||
asio::cancellation_signal signal;
|
||||
client_type c(ioc);
|
||||
c.brokers("127.0.0.1");
|
||||
asio::io_context ioc;
|
||||
asio::cancellation_signal signal;
|
||||
client_type c(ioc);
|
||||
c.brokers("127.0.0.1");
|
||||
|
||||
setup_cancel_op_test_case<op_type>(c, signal, handlers_called);
|
||||
setup_cancel_op_test_case<op_type>(c, signal, handlers_called);
|
||||
|
||||
asio::steady_timer timer(c.get_executor());
|
||||
timer.expires_after(std::chrono::milliseconds(100));
|
||||
timer.async_wait([&](error_code) {
|
||||
if constexpr (c_type == client_cancel)
|
||||
c.cancel();
|
||||
else if constexpr (c_type == signal_emit)
|
||||
signal.emit(asio::cancellation_type_t::terminal);
|
||||
});
|
||||
asio::steady_timer timer(c.get_executor());
|
||||
timer.expires_after(std::chrono::milliseconds(100));
|
||||
timer.async_wait([&](error_code) {
|
||||
if constexpr (c_type == client_cancel)
|
||||
c.cancel();
|
||||
else if constexpr (c_type == signal_emit)
|
||||
signal.emit(asio::cancellation_type_t::terminal);
|
||||
});
|
||||
|
||||
ioc.run();
|
||||
BOOST_TEST(handlers_called == expected_handlers_called);
|
||||
ioc.run();
|
||||
BOOST_TEST(handlers_called == expected_handlers_called);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(cancellation/*, *boost::unit_test::disabled()*/)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(client_cancel_async_run) {
|
||||
run_cancel_op_test<test::client_cancel, test::async_run>();
|
||||
run_cancel_op_test<test::client_cancel, test::async_run>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_run) {
|
||||
run_cancel_op_test<test::signal_emit, test::async_run>();
|
||||
run_cancel_op_test<test::signal_emit, test::async_run>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(client_cancel_async_publish) {
|
||||
run_cancel_op_test<test::client_cancel, test::publish>();
|
||||
run_cancel_op_test<test::client_cancel, test::publish>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_publish) {
|
||||
run_cancel_op_test<test::signal_emit, test::publish>();
|
||||
run_cancel_op_test<test::signal_emit, test::publish>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(client_cancel_async_receive) {
|
||||
run_cancel_op_test<test::client_cancel, test::receive>();
|
||||
run_cancel_op_test<test::client_cancel, test::receive>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_receive) {
|
||||
run_cancel_op_test<test::signal_emit, test::receive>();
|
||||
run_cancel_op_test<test::signal_emit, test::receive>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(client_cancel_async_subscribe) {
|
||||
run_cancel_op_test<test::client_cancel, test::subscribe>();
|
||||
run_cancel_op_test<test::client_cancel, test::subscribe>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_subscribe) {
|
||||
run_cancel_op_test<test::signal_emit, test::subscribe>();
|
||||
run_cancel_op_test<test::signal_emit, test::subscribe>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(client_cancel_async_unsubscribe) {
|
||||
run_cancel_op_test<test::client_cancel, test::unsubscribe>();
|
||||
run_cancel_op_test<test::client_cancel, test::unsubscribe>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_unsubscribe) {
|
||||
run_cancel_op_test<test::signal_emit, test::unsubscribe>();
|
||||
run_cancel_op_test<test::signal_emit, test::unsubscribe>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(signal_emit_async_disconnect) {
|
||||
run_cancel_op_test<test::signal_emit, test::disconnect>();
|
||||
run_cancel_op_test<test::signal_emit, test::disconnect>();
|
||||
}
|
||||
|
||||
struct shared_test_data {
|
||||
error_code success {};
|
||||
error_code fail = asio::error::not_connected;
|
||||
error_code success {};
|
||||
error_code fail = asio::error::not_connected;
|
||||
|
||||
const std::string connect = encoders::encode_connect(
|
||||
"", std::nullopt, std::nullopt, 60, false, {}, std::nullopt
|
||||
);
|
||||
const std::string connack = encoders::encode_connack(
|
||||
false, reason_codes::success.value(), {}
|
||||
);
|
||||
const std::string connect = encoders::encode_connect(
|
||||
"", std::nullopt, std::nullopt, 60, false, {}, std::nullopt
|
||||
);
|
||||
const std::string connack = encoders::encode_connack(
|
||||
false, reason_codes::success.value(), {}
|
||||
);
|
||||
|
||||
const std::string topic = "topic";
|
||||
const std::string payload = "payload";
|
||||
const publish_props pub_props {};
|
||||
const std::string topic = "topic";
|
||||
const std::string payload = "payload";
|
||||
const publish_props pub_props {};
|
||||
|
||||
const std::string publish_qos1 = encoders::encode_publish(
|
||||
1, topic, payload, qos_e::at_least_once, retain_e::no, dup_e::no, {}
|
||||
);
|
||||
const std::string publish_qos1 = encoders::encode_publish(
|
||||
1, topic, payload, qos_e::at_least_once, retain_e::no, dup_e::no, {}
|
||||
);
|
||||
|
||||
const std::string puback = encoders::encode_puback(1, uint8_t(0x00), {});
|
||||
const std::string puback = encoders::encode_puback(1, uint8_t(0x00), {});
|
||||
};
|
||||
|
||||
using test::after;
|
||||
@@ -282,70 +280,70 @@ using namespace std::chrono_literals;
|
||||
constexpr auto use_nothrow_awaitable = asio::as_tuple(asio::use_awaitable);
|
||||
|
||||
BOOST_FIXTURE_TEST_CASE(rerunning_the_client, shared_test_data) {
|
||||
// packets
|
||||
auto disconnect = encoders::encode_disconnect(uint8_t(0x00), {});
|
||||
// packets
|
||||
auto disconnect = encoders::encode_disconnect(uint8_t(0x00), {});
|
||||
|
||||
test::msg_exchange broker_side;
|
||||
broker_side
|
||||
.expect(connect)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(connack, after(2ms))
|
||||
.expect(publish_qos1)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(puback, after(2ms))
|
||||
.expect(connect)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(connack, after(2ms))
|
||||
.expect(publish_qos1)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(puback, after(2ms))
|
||||
.expect(disconnect);
|
||||
test::msg_exchange broker_side;
|
||||
broker_side
|
||||
.expect(connect)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(connack, after(2ms))
|
||||
.expect(publish_qos1)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(puback, after(2ms))
|
||||
.expect(connect)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(connack, after(2ms))
|
||||
.expect(publish_qos1)
|
||||
.complete_with(success, after(1ms))
|
||||
.reply_with(puback, after(2ms))
|
||||
.expect(disconnect);
|
||||
|
||||
asio::io_context ioc;
|
||||
auto executor = ioc.get_executor();
|
||||
auto& broker = asio::make_service<test::test_broker>(
|
||||
ioc, executor, std::move(broker_side)
|
||||
);
|
||||
asio::io_context ioc;
|
||||
auto executor = ioc.get_executor();
|
||||
auto& broker = asio::make_service<test::test_broker>(
|
||||
ioc, executor, std::move(broker_side)
|
||||
);
|
||||
|
||||
co_spawn(ioc,
|
||||
[&]() -> asio::awaitable<void> {
|
||||
mqtt_client<test::test_stream> c(ioc);
|
||||
c.brokers("127.0.0.1,127.0.0.1", 1883) // to avoid reconnect backoff
|
||||
.async_run(asio::detached);
|
||||
co_spawn(ioc,
|
||||
[&]() -> asio::awaitable<void> {
|
||||
mqtt_client<test::test_stream> c(ioc);
|
||||
c.brokers("127.0.0.1,127.0.0.1", 1883) // to avoid reconnect backoff
|
||||
.async_run(asio::detached);
|
||||
|
||||
// Note: Older versions of GCC compilers may not handle temporaries
|
||||
// correctly in co_await expressions.
|
||||
// (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401)
|
||||
auto [ec, rc, props] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(!ec);
|
||||
BOOST_TEST(!rc);
|
||||
// Note: Older versions of GCC compilers may not handle temporaries
|
||||
// correctly in co_await expressions.
|
||||
// (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401)
|
||||
auto [ec, rc, props] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(!ec);
|
||||
BOOST_TEST(!rc);
|
||||
|
||||
c.cancel();
|
||||
c.cancel();
|
||||
|
||||
auto [cec, crc, cprops] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(cec == asio::error::operation_aborted);
|
||||
BOOST_TEST(crc == reason_codes::empty);
|
||||
auto [cec, crc, cprops] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(cec == asio::error::operation_aborted);
|
||||
BOOST_TEST(crc == reason_codes::empty);
|
||||
|
||||
c.async_run(asio::detached);
|
||||
c.async_run(asio::detached);
|
||||
|
||||
auto [rec, rrc, rprops] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(!rec);
|
||||
BOOST_TEST(!rrc);
|
||||
auto [rec, rrc, rprops] = co_await c.async_publish<qos_e::at_least_once>(
|
||||
topic, payload, retain_e::no, pub_props, use_nothrow_awaitable
|
||||
);
|
||||
BOOST_TEST(!rec);
|
||||
BOOST_TEST(!rrc);
|
||||
|
||||
co_await c.async_disconnect(use_nothrow_awaitable);
|
||||
co_return;
|
||||
},
|
||||
asio::detached
|
||||
);
|
||||
co_await c.async_disconnect(use_nothrow_awaitable);
|
||||
co_return;
|
||||
},
|
||||
asio::detached
|
||||
);
|
||||
|
||||
ioc.run();
|
||||
BOOST_TEST(broker.received_all_expected());
|
||||
ioc.run();
|
||||
BOOST_TEST(broker.received_all_expected());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user