tests: fix UDP multicast transport tests with IPv6
A valid scope id is always required on the multicast address
Change-Id: Ic676fcde0ee50daf75eb38c137e3cb917f43699f
diff --git a/tests/daemon/face/websocket-channel.t.cpp b/tests/daemon/face/websocket-channel.t.cpp
index a396530..15d1a57 100644
--- a/tests/daemon/face/websocket-channel.t.cpp
+++ b/tests/daemon/face/websocket-channel.t.cpp
@@ -41,16 +41,14 @@
BOOST_AUTO_TEST_CASE_TEMPLATE(Uri, F, AddressFamilies)
{
- using Address = typename IpAddressFromFamily<F::value>::type;
- websocket::Endpoint ep(Address::loopback(), 20070);
+ websocket::Endpoint ep(IpAddressTypeFromFamily<F::value>::loopback(), 20070);
auto channel = this->makeChannel(ep.address(), ep.port());
BOOST_CHECK_EQUAL(channel->getUri(), FaceUri(ep, "ws"));
}
BOOST_AUTO_TEST_CASE_TEMPLATE(Listen, F, AddressFamilies)
{
- using Address = typename IpAddressFromFamily<F::value>::type;
- auto channel = this->makeChannel(Address());
+ auto channel = this->makeChannel(IpAddressTypeFromFamily<F::value>());
BOOST_CHECK_EQUAL(channel->isListening(), false);
channel->listen(nullptr);