Skip to content

Commit

Permalink
test/rgw: use spawn library for test_rgw_dmclock_scheduler
Browse files Browse the repository at this point in the history
Signed-off-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
cbodley committed Jul 20, 2021
1 parent 21baed9 commit a8e3589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/test/rgw/CMakeLists.txt
Expand Up @@ -167,8 +167,6 @@ add_executable(unittest_rgw_dmclock_scheduler test_rgw_dmclock_scheduler.cc $<TA
add_ceph_unittest(unittest_rgw_dmclock_scheduler)

target_link_libraries(unittest_rgw_dmclock_scheduler rgw_schedulers global ${UNITTEST_LIBS})
target_compile_definitions(unittest_rgw_dmclock_scheduler PRIVATE BOOST_COROUTINES_NO_DEPRECATION_WARNING)
target_link_libraries(unittest_rgw_dmclock_scheduler Boost::coroutine Boost::context)

if(WITH_RADOSGW_AMQP_ENDPOINT)
add_executable(unittest_rgw_amqp test_rgw_amqp.cc)
Expand Down
4 changes: 2 additions & 2 deletions src/test/rgw/test_rgw_dmclock_scheduler.cc
Expand Up @@ -18,7 +18,7 @@
#include "rgw/rgw_dmclock_async_scheduler.h"

#include <optional>
#include <boost/asio/spawn.hpp>
#include <spawn/spawn.hpp>
#include <gtest/gtest.h>
#include "acconfig.h"
#include "global/global_context.h"
Expand Down Expand Up @@ -400,7 +400,7 @@ TEST(Queue, SpawnAsyncRequest)
{
boost::asio::io_context context;

boost::asio::spawn(context, [&] (boost::asio::yield_context yield) {
spawn::spawn(context, [&] (spawn::yield_context yield) {
ClientCounters counters(g_ceph_context);
AsyncScheduler queue(g_ceph_context, context, std::ref(counters), nullptr,
[] (client_id client) -> ClientInfo* {
Expand Down

0 comments on commit a8e3589

Please sign in to comment.