From: Thomas Markwalder Date: Mon, 11 Jun 2018 12:36:07 +0000 (-0400) Subject: [5378] Fixed failing unparse test X-Git-Tag: 136-add-global-host-reservation-examples_base~4^2~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7559d5df8813c399bc5b427de5178c334837fba;p=thirdparty%2Fkea.git [5378] Fixed failing unparse test tests/srv_config_unittest.cc TEST_F(SrvConfigTest, unparseHR) - added init of CfgMgr instance family. Test was failing when run with other tests. --- diff --git a/src/lib/dhcpsrv/tests/srv_config_unittest.cc b/src/lib/dhcpsrv/tests/srv_config_unittest.cc index 86f3266515..fdcb8de85a 100644 --- a/src/lib/dhcpsrv/tests/srv_config_unittest.cc +++ b/src/lib/dhcpsrv/tests/srv_config_unittest.cc @@ -561,6 +561,7 @@ TEST_F(SrvConfigTest, unparse) { // Verifies that the toElement method does not miss host reservations TEST_F(SrvConfigTest, unparseHR) { // DHCPv4 version + CfgMgr::instance().setFamily(AF_INET); SrvConfig conf4(32); // Add a plain subnet