diff options
Diffstat (limited to 'cpp/src/tests/Cluster.cpp')
-rw-r--r-- | cpp/src/tests/Cluster.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/tests/Cluster.cpp b/cpp/src/tests/Cluster.cpp index f3a50e2094..a9caa89321 100644 --- a/cpp/src/tests/Cluster.cpp +++ b/cpp/src/tests/Cluster.cpp @@ -19,8 +19,8 @@ #include "Cluster.h" #include "test_tools.h" -#include "qpid/framing/SessionPingBody.h" -#include "qpid/framing/SessionPongBody.h" +#include "qpid/framing/SessionOpenBody.h" +#include "qpid/framing/SessionAttachedBody.h" #include "qpid/framing/all_method_bodies.h" #include "qpid/cluster/ClassifierHandler.h" @@ -34,11 +34,11 @@ static const ProtocolVersion VER; /** Verify membership in a cluster with one member. */ BOOST_AUTO_TEST_CASE(testClusterOne) { TestCluster cluster("clusterOne", "amqp:one:1"); - AMQFrame send(VER, 1, SessionPingBody(VER)); + AMQFrame send(VER, 1, SessionOpenBody(VER)); cluster.handle(send); AMQFrame received; BOOST_REQUIRE(cluster.received.waitPop(received)); - BOOST_CHECK_TYPEID_EQUAL(SessionPingBody, *received.getBody()); + BOOST_CHECK_TYPEID_EQUAL(SessionOpenBody, *received.getBody()); BOOST_CHECK_EQUAL(1u, cluster.size()); Cluster::MemberList members = cluster.getMembers(); BOOST_CHECK_EQUAL(1u, members.size()); @@ -60,14 +60,14 @@ BOOST_AUTO_TEST_CASE(testClusterTwo) { BOOST_REQUIRE(cluster.waitFor(2)); // Myself and child. // Exchange frames with child. - AMQFrame send(VER, 1, SessionPingBody(VER)); + AMQFrame send(VER, 1, SessionOpenBody(VER)); cluster.handle(send); AMQFrame received; BOOST_REQUIRE(cluster.received.waitPop(received)); - BOOST_CHECK_TYPEID_EQUAL(SessionPingBody, *received.getBody()); + BOOST_CHECK_TYPEID_EQUAL(SessionOpenBody, *received.getBody()); BOOST_REQUIRE(cluster.received.waitPop(received)); - BOOST_CHECK_TYPEID_EQUAL(SessionPongBody, *received.getBody()); + BOOST_CHECK_TYPEID_EQUAL(SessionAttachedBody, *received.getBody()); if (!nofork) { // Wait for child to exit. |