Skip to content

Commit 15df087

Browse files
authored
ci(boost): Remove timeout from boost::process unit test to avoid errors in slow CI runs. (#73)
1 parent af9e1b0 commit 15df087

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

taskfiles/boost/test_boost.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ auto test_iostreams() -> bool {
9797
}
9898

9999
auto test_process() -> bool {
100-
constexpr int cWaitTime = 10;
101100
try {
102101
boost::asio::io_context io_context;
103102
boost::process::v2::process process{
@@ -107,10 +106,8 @@ auto test_process() -> bool {
107106
boost::process::process_stdio{.in{}, .out{nullptr}, .err{nullptr}}
108107
};
109108
std::future<int> result = process.async_wait(boost::asio::use_future);
110-
io_context.run_for(std::chrono::milliseconds(cWaitTime));
111-
if (std::future_status::ready != result.wait_for(std::chrono::milliseconds(cWaitTime))) {
112-
return false;
113-
}
109+
io_context.run();
110+
result.wait();
114111
return 0 == result.get();
115112
} catch (std::exception const& e) {
116113
return false;

0 commit comments

Comments
 (0)