From 28bf23947d93ffc6e93357da3b8d2deb8de09019 Mon Sep 17 00:00:00 2001 From: Bruno Iljazovic Date: Fri, 19 Jan 2024 17:27:49 +0100 Subject: [PATCH] increase run_for duration in cancellation tests Reviewers: ljudevit Reviewed By: ljudevit Subscribers: korina Differential Revision: https://repo.mireo.local/D27476 --- test/integration/cancellation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/cancellation.cpp b/test/integration/cancellation.cpp index d917531..4d02dea 100644 --- a/test/integration/cancellation.cpp +++ b/test/integration/cancellation.cpp @@ -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); }