From: Kefu Chai Date: Fri, 5 Jul 2019 14:51:10 +0000 (+0800) Subject: test/crimson: fix FTBFS X-Git-Tag: v15.1.0~2282^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c242d3d6360898a1d154240c735a6369d6436a72;p=ceph.git test/crimson: fix FTBFS Connection::send_message(Message*) Signed-off-by: Kefu Chai --- diff --git a/src/test/crimson/test_async_echo.cc b/src/test/crimson/test_async_echo.cc index c04e754d3445..c9a4e907308e 100644 --- a/src/test/crimson/test_async_echo.cc +++ b/src/test/crimson/test_async_echo.cc @@ -49,7 +49,7 @@ struct Server { return m->get_type() == CEPH_MSG_PING; } void ms_fast_dispatch(Message* m) override { - m->get_connection()->send_message(make_message()); + m->get_connection()->send_message(new MPing); m->put(); { std::lock_guard lock{mutex}; @@ -132,7 +132,7 @@ struct Client { auto conn = msgr->connect_to(peer.name.type(), entity_addrvec_t{peer.addr}); replied = false; - conn->send_message(make_message()); + conn->send_message(new MPing); std::unique_lock lock{mutex}; return on_reply.wait_for(lock, 500ms, [&] { return replied;