mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-10-04 12:50:54 +02:00
Connect_op basic unit tests
Summary: related to T12015 - added basic unit tests (without auth for a smaller diff) - further simplified tests in publish_receive.cpp Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27417
This commit is contained in:
@@ -214,7 +214,7 @@ public:
|
||||
if (ec)
|
||||
return complete(ec);
|
||||
|
||||
_buffer_ptr = std::make_unique<std::string>(min_packet_sz, 0);
|
||||
_buffer_ptr = std::make_unique<std::string>(min_packet_sz, char(0));
|
||||
|
||||
auto buff = asio::buffer(_buffer_ptr->data(), min_packet_sz);
|
||||
asio::async_read(
|
||||
@@ -240,7 +240,7 @@ public:
|
||||
);
|
||||
|
||||
if (!varlen)
|
||||
complete(asio::error::try_again);
|
||||
return complete(asio::error::try_again);
|
||||
|
||||
auto varlen_sz = std::distance(_buffer_ptr->cbegin() + 1, varlen_ptr);
|
||||
auto remain_len = *varlen -
|
||||
|
Reference in New Issue
Block a user