Sanity tests related to number of packets, packet size & packet priority

Summary:
related to T12015
- add tests related to sending/receiving really big packets
- add tests related to receiving multiple packets at once
- send_big_publish fails in the testing environment, but it works fine in real life

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D27652
This commit is contained in:
Korina Šimičević
2024-02-01 10:35:18 +01:00
parent 33c8eea890
commit 0affdb76f4
7 changed files with 388 additions and 96 deletions

View File

@@ -183,23 +183,21 @@ BOOST_FIXTURE_TEST_CASE(keep_alive_change_while_waiting, shared_test_data) {
BOOST_FIXTURE_TEST_CASE(keep_alive_change_during_writing, shared_test_data) {
// data
uint16_t keep_alive = 0;
uint16_t keep_alive = 1;
uint16_t server_keep_alive = 1;
test::msg_exchange broker_side;
broker_side
.expect(connect_with_keep_alive(keep_alive))
.complete_with(success, after(1ms))
.reply_with(connack_with_keep_alive(server_keep_alive), after(2ms))
.reply_with(connack_with_keep_alive(server_keep_alive), after(1500ms))
.expect(pingreq)
.complete_with(fail, after(1ms))
.expect(connect_with_keep_alive(keep_alive))
.complete_with(success, after(1ms))
.reply_with(connack_no_ka, after(2ms));
.reply_with(pingresp, after(2ms));
run_test(
std::move(broker_side),
std::chrono::milliseconds(1500), keep_alive
std::chrono::milliseconds(2700), keep_alive
);
}