Add op cancellation tests

Summary: related to T12015

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D27459
This commit is contained in:
Korina Šimičević
2024-01-19 13:45:09 +01:00
parent d7d0b4c239
commit fa014fc337
4 changed files with 256 additions and 188 deletions

View File

@@ -46,7 +46,7 @@ struct shared_test_data {
};
using test::after;
using std::chrono_literals::operator ""ms;
using namespace std::chrono;
void run_test(test::msg_exchange broker_side) {
constexpr int expected_handlers_called = 1;
@@ -125,7 +125,6 @@ BOOST_FIXTURE_TEST_CASE(test_receive_publish_qos2, shared_test_data) {
run_test(std::move(broker_side));
}
BOOST_FIXTURE_TEST_CASE(fail_to_send_pubrec, shared_test_data) {
auto publish_dup = encoders::encode_publish(
1, topic, payload, qos_e::exactly_once, retain_e::no, dup_e::yes, {}