]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4206] Fixed Dhcp4 unit test failure under OS-X
authorThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 16:22:06 +0000 (11:22 -0500)
committerThomas Markwalder <tmark@isc.org>
Wed, 9 Dec 2015 16:22:06 +0000 (11:22 -0500)
src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
    TEST_F(Dhcpv4SrvTest, emptyClientId)
        Added code to set up test interfaces

src/bin/dhcp4/tests/dhcp4_srv_unittest.cc

index 0d2e91f380dfbc24ddf5fab59ecc54cec8d1e9ab..d1551357867deb0dd6e8705169eb1dddf53ef76b 100644 (file)
@@ -2663,6 +2663,8 @@ TEST_F(Dhcpv4SrvTest, statisticsUnknownRcvd) {
 // This test verifies that the server is able to handle an empty client-id
 // in incoming client message.
 TEST_F(Dhcpv4SrvTest, emptyClientId) {
+    IfaceMgrTestConfig test_config(true);
+    IfaceMgr::instance().openSockets4();
     Dhcp4Client client;
 
     EXPECT_NO_THROW(configure(CONFIGS[0], *client.getServer()));