]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw: use spawn library for test_rgw_dmclock_scheduler 42425/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Jul 2021 16:50:25 +0000 (12:50 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 20 Jul 2021 16:50:25 +0000 (12:50 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/rgw/CMakeLists.txt
src/test/rgw/test_rgw_dmclock_scheduler.cc

index 569cbb93a0e6934311a978b15fcdc14b62516b06..641fd69cd91cfbe3e0ac0cc5d072caf9bf770c76 100644 (file)
@@ -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)
index 84d411b3d3a02d2bf2be029b5ae989886fa7f7b9..3b9fe1a5574c6f22d8fb39fd3f28706f36080c6a 100644 (file)
@@ -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"
@@ -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* {