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:
1 parent
2f6751d162
commit
4f87b27861
29 files changed
+398
-85
No files matched your search
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE(test_malformed_publish) {
|
||||
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);
|
||||
|
||||
asio::steady_timer timer(c.get_executor());
|
||||
timer.expires_after(std::chrono::seconds(2));
|
||||
@@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE(test_malformed_pubrel, *boost::unit_test::disabled()) {
|
||||
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_receive(
|
||||
[&](
|
||||
@@ -205,7 +205,7 @@ BOOST_AUTO_TEST_CASE(malformed_puback) {
|
||||
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", retain_e::no, publish_props {},
|
||||
@@ -302,7 +302,7 @@ BOOST_AUTO_TEST_CASE(malformed_pubrec_pubcomp) {
|
||||
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::exactly_once>(
|
||||
"t", "p", retain_e::no, publish_props {},
|
||||
|
||||
Reference in new issue
Block a user