From f90ed705e3bc5b64f0c8098f668d068e49d7cafd Mon Sep 17 00:00:00 2001 From: Joker Date: Thu, 19 Jun 2025 23:20:07 +0800 Subject: [PATCH] fix tests for boost asio>=1.80 --- test/socket/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/socket/main.cpp b/test/socket/main.cpp index c39088f..d1a2a5b 100644 --- a/test/socket/main.cpp +++ b/test/socket/main.cpp @@ -839,7 +839,7 @@ TEST_CASE("Async Operation Send/Receive with stackful coroutine", "[socket_ops]" //send coroutine task boost::asio::spawn(ios, [&](boost::asio::yield_context yield) { btc = azmq::async_send(sc, snd_bufs, yield); - }); + }, boost::coroutines::attributes()); //receive coroutine task boost::asio::spawn(ios, [&](boost::asio::yield_context yield) { @@ -854,7 +854,7 @@ TEST_CASE("Async Operation Send/Receive with stackful coroutine", "[socket_ops]" }}; btb = azmq::async_receive(sb, rcv_bufs, yield); - }); + }, boost::coroutines::attributes()); ios.run(); REQUIRE(btb.has_value()); @@ -877,7 +877,7 @@ TEST_CASE("Async Operation Send/Receive single message, stackful coroutine, one boost::asio::spawn(ios, [&](boost::asio::yield_context yield) { auto const btc = azmq::async_send(sc, snd_bufs, yield); REQUIRE(btc == 4); - }); + }, boost::coroutines::attributes()); //receive coroutine task boost::asio::spawn(ios, [&](boost::asio::yield_context yield) { @@ -898,7 +898,7 @@ TEST_CASE("Async Operation Send/Receive single message, stackful coroutine, one REQUIRE(!frame3.more()); REQUIRE(message_ref(snd_bufs.at(1)) == message_ref(frame3)); - }); + }, boost::coroutines::attributes()); ios.run(); }