summaryrefslogtreecommitdiff
path: root/cpp/src/tests/Cluster_child.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/Cluster_child.cpp')
-rw-r--r--cpp/src/tests/Cluster_child.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/cpp/src/tests/Cluster_child.cpp b/cpp/src/tests/Cluster_child.cpp
index d73d2bdbc7..216afc7bca 100644
--- a/cpp/src/tests/Cluster_child.cpp
+++ b/cpp/src/tests/Cluster_child.cpp
@@ -33,13 +33,16 @@ static const ProtocolVersion VER;
/** Chlid part of Cluster::clusterTwo test */
void clusterTwo() {
TestCluster cluster("clusterTwo", "amqp::2");
- BOOST_REQUIRE(cluster.in.waitFor(1)); // Frame from parent.
- BOOST_CHECK_TYPEID_EQUAL(ChannelPingBody, *cluster.in[0].getBody());
+ BOOST_REQUIRE(cluster.received.waitFor(1)); // Frame from parent.
+ BOOST_CHECK(cluster.received[0].isIncoming);
+ BOOST_CHECK_TYPEID_EQUAL(ChannelPingBody, *cluster.received[0].frame.getBody());
BOOST_CHECK_EQUAL(2u, cluster.size()); // Me and parent
+
AMQFrame frame(VER, 1, new ChannelOkBody(VER));
- cluster.getToChains().out->handle(frame);
- BOOST_REQUIRE(cluster.out.waitFor(1));
- BOOST_CHECK_TYPEID_EQUAL(ChannelOkBody, *cluster.out[0].getBody());
+ cluster.getSendChains().out->handle(frame);
+ BOOST_REQUIRE(cluster.received.waitFor(2));
+ BOOST_CHECK(!cluster.received[1].isIncoming);
+ BOOST_CHECK_TYPEID_EQUAL(ChannelOkBody, *cluster.received[1].frame.getBody());
}
int test_main(int, char**) {