forked from boostorg/mqtt5
async_run
Reviewers: ivica Reviewed By: ivica Subscribers: korina Differential Revision: https://repo.mireo.local/D27342
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user