From 7a727155bbde25a3ca54ab865aeac466ac774005 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Tue, 6 Mar 2018 17:31:41 +0100 Subject: [PATCH] [5515] Fixed adjustIfaceDataUseRouting unit test --- src/bin/dhcp4/tests/dhcp4_srv_unittest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc index 99789e1cf5..324bd0f74c 100644 --- a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc @@ -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. -- 2.47.2