]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5515] Fixed adjustIfaceDataUseRouting unit test
authorFrancis Dupont <fdupont@isc.org>
Tue, 6 Mar 2018 16:31:41 +0000 (17:31 +0100)
committerMarcin Siodelski <marcin@isc.org>
Wed, 16 May 2018 12:07:40 +0000 (14:07 +0200)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 99789e1cf5fccbaa1a479749f36224eebcb8a49b..324bd0f74c0e640c3c822ed8de9d0d5ee49d1e6d 100644 (file)
@@ -339,9 +339,11 @@ TEST_F(Dhcpv4SrvTest, adjustIfaceDataUseRouting) {
     // No specific interface is selected as outbound interface and no specific
     // local address is provided. The IfaceMgr will figure out which interface to use.
     EXPECT_TRUE(resp->getLocalAddr().isV4Zero());
-    EXPECT_TRUE(resp->getIface().empty());
     EXPECT_FALSE(resp->indexSet());
 
+    // Fixed in #5515 so now the interface name is never empty.
+    EXPECT_FALSE(resp->getIface().empty());
+
     // Another test verifies that setting outbound interface to same as inbound will
     // cause the server to set interface and local address as expected.