Browse Source

[4291] Put the new unit test in the right universe

Francis Dupont 9 years ago
parent
commit
9e6de79c46
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc

+ 3 - 0
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);