From 9e6de79c46552b9c8d56898ff55d42b7c5189eb2 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Mon, 1 Feb 2016 15:15:42 +0100 Subject: [PATCH] [4291] Put the new unit test in the right universe --- src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) 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);