Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/socket/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


//receive coroutine task
boost::asio::spawn(ios, [&](boost::asio::yield_context yield) {
Expand All @@ -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());
Expand All @@ -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) {
Expand All @@ -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();
}
Expand Down
Loading