Better test packet logging & validation

Summary:
related to T12015, T11798
- improved packet logging in test broker for easier debugging
- test broker will fail the test if a packet is sent after all the messages were exchanged
- fixed a bug in assemble_op where read buffer was not properly cleared if an error occurred (for example, malformed packet cases)

Reviewers: ivica

Reviewed By: ivica

Subscribers: iljazovic, miljen

Differential Revision: https://repo.mireo.local/D27561
This commit is contained in:
Korina Šimičević committed 2024-01-26 10:28:41 +01:00
1 parent 61f17f6e0f
commit 4bf59cc18c
7 files changed
+307 -69

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
boost::unit_test::test_suite* init_tests(
int /*argc*/, char* /*argv*/[]
) {
async_mqtt5::test::logging_enabled() = true;
async_mqtt5::test::logging_enabled() = false;
return nullptr;
}