]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1373] fixed unittests
authorRazvan Becheriu <razvan@isc.org>
Fri, 25 Sep 2020 15:59:46 +0000 (18:59 +0300)
committerTomek Mrugalski <tomek@isc.org>
Fri, 25 Sep 2020 16:32:40 +0000 (18:32 +0200)
src/hooks/dhcp/flex_option/tests/flex_option_unittests.cc

index 715fe711da920399724ffe767930ee8081710202..a3eb8296dd2115b73d0fcc52ca1e1a97c3244feb 100644 (file)
@@ -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);