From: Tomek Mrugalski Date: Fri, 4 Dec 2020 12:38:43 +0000 (+0100) Subject: [#356] Updated interface name X-Git-Tag: Kea-1.9.3~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3f72ee27c09453dfba4ddf6fda407e774596bf;p=thirdparty%2Fkea.git [#356] Updated interface name - there is en7 in the system on my MacOS 10.15.7 --- diff --git a/src/lib/dhcp/tests/iface_mgr_unittest.cc b/src/lib/dhcp/tests/iface_mgr_unittest.cc index 8aa901517c..062f994217 100644 --- a/src/lib/dhcp/tests/iface_mgr_unittest.cc +++ b/src/lib/dhcp/tests/iface_mgr_unittest.cc @@ -1048,10 +1048,10 @@ TEST_F(IfaceMgrTest, getIface) { // Interface name, ifindex IfacePtr iface1(new Iface("lo1", 100)); IfacePtr iface2(new Iface("eth9", 101)); - IfacePtr iface3(new Iface("en7", 102)); + IfacePtr iface3(new Iface("en99", 102)); IfacePtr iface4(new Iface("e1000g4", 103)); cout << "This test assumes that there are less than 100 network interfaces" - << " in the tested system and there are no lo1, eth9, en7, e1000g4" + << " in the tested system and there are no lo1, eth9, en99, e1000g4" << " or wifi15 interfaces present." << endl; // Note: real interfaces may be detected as well @@ -1070,7 +1070,7 @@ TEST_F(IfaceMgrTest, getIface) { IfacePtr tmp = ifacemgr->getIface(102); ASSERT_TRUE(tmp); - EXPECT_EQ("en7", tmp->getName()); + EXPECT_EQ("en99", tmp->getName()); EXPECT_EQ(102, tmp->getIndex()); // Check that interface can be retrieved by name