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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/Cluster_child.cpp b/cpp/src/tests/Cluster_child.cpp
index 8d0682473b..75591bb68f 100644
--- a/cpp/src/tests/Cluster_child.cpp
+++ b/cpp/src/tests/Cluster_child.cpp
@@ -39,7 +39,8 @@ void clusterTwo() {
BOOST_CHECK_TYPEID_EQUAL(SessionOpenBody, *frame.getBody());
BOOST_CHECK_EQUAL(2u, cluster.size()); // Me and parent
- AMQFrame send(1, SessionAttachedBody(VER));
+ AMQFrame send(in_place<SessionAttachedBody>(VER));
+ send.setChannel(1);
cluster.handle(send);
BOOST_REQUIRE(cluster.received.waitPop(frame));
BOOST_CHECK_TYPEID_EQUAL(SessionAttachedBody, *frame.getBody());