diff --git a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc index d959b06f02..dc93e5101f 100644 --- a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc +++ b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc @@ -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);