From c7559d5df8813c399bc5b427de5178c334837fba Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Mon, 11 Jun 2018 08:36:07 -0400 Subject: [PATCH] [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. --- src/lib/dhcpsrv/tests/srv_config_unittest.cc | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2