Skip to content

Commit

Permalink
Add pub ind
Browse files Browse the repository at this point in the history
  • Loading branch information
redboltz committed Nov 19, 2024
1 parent 0a3e8a8 commit 3abae56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/system/st_offline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ BOOST_AUTO_TEST_CASE(v311_cs0_sp1_from_broker) {
yield ep(pub).async_recv(*this);
BOOST_TEST(pv_opt->get_if<am::v3_1_1::connack_packet>());

std::cout << __LINE__ << " pub QoS0" << std::endl;
// publish QoS0
yield ep(pub).async_send(
am::v3_1_1::publish_packet{
Expand All @@ -552,6 +553,7 @@ BOOST_AUTO_TEST_CASE(v311_cs0_sp1_from_broker) {
*this
);
BOOST_TEST(!ec);
std::cout << __LINE__ << " pub QoS1" << std::endl;
// publish QoS1
yield ep(pub).async_send(
am::v3_1_1::publish_packet{
Expand All @@ -564,6 +566,7 @@ BOOST_AUTO_TEST_CASE(v311_cs0_sp1_from_broker) {
);
BOOST_TEST(!ec);

std::cout << __LINE__ << " pub QoS2" << std::endl;
// publish QoS2
yield ep(pub).async_send(
am::v3_1_1::publish_packet{
Expand All @@ -574,6 +577,7 @@ BOOST_AUTO_TEST_CASE(v311_cs0_sp1_from_broker) {
},
*this
);
std::cout << __LINE__ << "back" << std::endl;

BOOST_TEST(!ec);
yield ep(pub).async_send(am::v3_1_1::disconnect_packet{}, *this);
Expand Down

0 comments on commit 3abae56

Please sign in to comment.