async_run

Reviewers: ivica

Reviewed By: ivica

Subscribers: korina

Differential Revision: https://repo.mireo.local/D27342
This commit is contained in:
Bruno Iljazovic
2024-01-16 13:18:21 +01:00
parent 2f6751d162
commit 4f87b27861
29 changed files with 398 additions and 85 deletions
+4 -4
View File
@@ -63,7 +63,7 @@ BOOST_AUTO_TEST_CASE(resend_multiple_publishes) {
using client_type = mqtt_client<test::test_stream>;
client_type c(executor, "");
c.brokers("127.0.0.1,127.0.0.1") // to avoid reconnect backoff
.run();
.async_run(asio::detached);
c.async_publish<qos_e::at_least_once>(
"t", "p_1", retain_e::no, publish_props{},
@@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(resend_pubrel) {
client_type c(executor, "");
c.brokers("127.0.0.1,127.0.0.1") // to avoid reconnect backoff
.run();
.async_run(asio::detached);
c.async_publish<qos_e::exactly_once>(
"t_1", "p_1", retain_e::no, publish_props{},
@@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(resend_subscribe) {
using client_type = mqtt_client<test::test_stream>;
client_type c(executor, "");
c.brokers("127.0.0.1,127.0.0.1") // to avoid reconnect backoff
.run();
.async_run(asio::detached);
c.async_subscribe(
topics, subscribe_props,
@@ -289,7 +289,7 @@ BOOST_AUTO_TEST_CASE(resend_unsubscribe) {
using client_type = mqtt_client<test::test_stream>;
client_type c(executor, "");
c.brokers("127.0.0.1,127.0.0.1") // to avoid reconnect backoff
.run();
.async_run(asio::detached);
c.async_unsubscribe(
topics, unsubscribe_props,