]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4291] Put the new unit test in the right universe
authorFrancis Dupont <fdupont@isc.org>
Mon, 1 Feb 2016 14:15:42 +0000 (15:15 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 1 Feb 2016 14:15:42 +0000 (15:15 +0100)
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc

index d959b06f02b2f95feb815fe85aaf1ba08fad6791..dc93e5101f607b44705cd777c7dab92d40f04339 100644 (file)
@@ -941,6 +941,9 @@ TEST_F(ParseConfigTest, optionDataNoSubOpion) {
         " } ]"
         "}";
 
+    // The default universe is V6. We need to change it to use dhcp4 option
+    // space.
+    parser_context_->universe_ = Option::V4;
     int rcode = 0;
     ASSERT_NO_THROW(rcode = parseConfiguration(config));
     EXPECT_EQ(0, rcode);