increase run_for duration in cancellation tests

Reviewers: ljudevit

Reviewed By: ljudevit

Subscribers: korina

Differential Revision: https://repo.mireo.local/D27476
This commit is contained in:
Bruno Iljazovic
2024-01-19 17:27:49 +01:00
parent 656e5c5d67
commit 28bf23947d

View File

@ -174,7 +174,7 @@ void run_cancel_op_test() {
});
ioc.run_for(20ms);
ioc.run_for(std::chrono::seconds(1));
BOOST_CHECK_EQUAL(handlers_called, expected_handlers_called);
}
@ -280,7 +280,7 @@ BOOST_AUTO_TEST_CASE(signal_emit_async_run_cancels_client) {
signal.emit(asio::cancellation_type::terminal);
});
ioc.run_for(std::chrono::milliseconds(20));
ioc.run_for(std::chrono::seconds(1));
BOOST_CHECK_EQUAL(handlers_called, expected_handlers_called);
}