From: Razvan Becheriu Date: Fri, 25 Sep 2020 15:59:46 +0000 (+0300) Subject: [#1373] fixed unittests X-Git-Tag: Kea-1.9.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e7c8abdca3039f096c5c2febb5c6e4a97f7f42;p=thirdparty%2Fkea.git [#1373] fixed unittests --- diff --git a/src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc b/src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc index 715fe711da..a3eb8296dd 100644 --- a/src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc +++ b/src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc @@ -1218,6 +1218,8 @@ TEST_F(FlexOptionTest, processFullTest) { // Verify that complex strings with escaped characters are properly parsed on add. TEST_F(FlexOptionTest, processFullAddWithComplexString) { + CfgMgr::instance().setFamily(AF_INET6); + ElementPtr options = Element::createList(); ElementPtr option = Element::createMap(); options->add(option); @@ -1251,6 +1253,8 @@ TEST_F(FlexOptionTest, processFullAddWithComplexString) { // Verify that complex strings with escaped characters are properly parsed on supersede. TEST_F(FlexOptionTest, processFullSupersedeWithComplexString) { + CfgMgr::instance().setFamily(AF_INET6); + ElementPtr options = Element::createList(); ElementPtr option = Element::createMap(); options->add(option);