diff options
author | Alan Conway <aconway@apache.org> | 2007-07-27 19:27:43 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-07-27 19:27:43 +0000 |
commit | 143dea5082101ca00b058959da7b83f0f078a68b (patch) | |
tree | 885dfac08dc42cc8e424fda2a1078a50ffd12994 /qpid/cpp/src/tests/Cluster_child.cpp | |
parent | 008544afce4d981650212d01db21d8a94f18e562 (diff) | |
download | qpid-python-143dea5082101ca00b058959da7b83f0f078a68b.tar.gz |
Drop SessionFrame, UUID is not required and more efficient to transmit plain
AMQFrames.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@560356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Cluster_child.cpp')
-rw-r--r-- | qpid/cpp/src/tests/Cluster_child.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/qpid/cpp/src/tests/Cluster_child.cpp b/qpid/cpp/src/tests/Cluster_child.cpp index fd4eb42e7b..7bea9d0490 100644 --- a/qpid/cpp/src/tests/Cluster_child.cpp +++ b/qpid/cpp/src/tests/Cluster_child.cpp @@ -35,18 +35,15 @@ static const ProtocolVersion VER; /** Chlid part of Cluster::clusterTwo test */ void clusterTwo() { TestCluster cluster("clusterTwo", "amqp:child:2"); - SessionFrame sf; - BOOST_REQUIRE(cluster.received.waitPop(sf)); // Frame from parent. - BOOST_CHECK(sf.isIncoming); - BOOST_CHECK_TYPEID_EQUAL(SessionPingBody, *sf.frame.getBody()); + AMQFrame frame; + BOOST_REQUIRE(cluster.received.waitPop(frame)); // Frame from parent. + BOOST_CHECK_TYPEID_EQUAL(SessionPingBody, *frame.getBody()); BOOST_CHECK_EQUAL(2u, cluster.size()); // Me and parent - AMQFrame frame(VER, 1, new SessionPongBody(VER)); - SessionFrame sendframe(sf.uuid, frame, false); - cluster.handle(sendframe); - BOOST_REQUIRE(cluster.received.waitPop(sf)); - BOOST_CHECK(!sf.isIncoming); - BOOST_CHECK_TYPEID_EQUAL(SessionPongBody, *sf.frame.getBody()); + AMQFrame send(VER, 1, new SessionPongBody(VER)); + cluster.handle(send); + BOOST_REQUIRE(cluster.received.waitPop(frame)); + BOOST_CHECK_TYPEID_EQUAL(SessionPongBody, *frame.getBody()); } int test_main(int, char**) { |