face: use NetworkMonitor::listNetworkInterfaces() in tests
refs #4021
Change-Id: I6daccc3872a0c6b2e2e49390bc5881c796503926
diff --git a/tests/daemon/face/ethernet-channel.t.cpp b/tests/daemon/face/ethernet-channel.t.cpp
index af9f788..78f5015 100644
--- a/tests/daemon/face/ethernet-channel.t.cpp
+++ b/tests/daemon/face/ethernet-channel.t.cpp
@@ -38,7 +38,7 @@
makeChannel()
{
BOOST_ASSERT(netifs.size() > 0);
- return make_unique<EthernetChannel>(netifs.front().asNetworkInterface(), time::seconds(2));
+ return make_unique<EthernetChannel>(netifs.front(), time::seconds(2));
}
};
@@ -50,7 +50,7 @@
SKIP_IF_ETHERNET_NETIF_COUNT_LT(1);
auto channel = makeChannel();
- BOOST_CHECK_EQUAL(channel->getUri(), FaceUri::fromDev(netifs.front().name));
+ BOOST_CHECK_EQUAL(channel->getUri(), FaceUri::fromDev(netifs.front()->getName()));
}
BOOST_AUTO_TEST_CASE(Listen)