]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3588] Removed useless check
authorFrancis Dupont <fdupont@isc.org>
Wed, 9 Oct 2024 14:35:19 +0000 (16:35 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 11 Oct 2024 08:18:01 +0000 (10:18 +0200)
src/bin/dhcp4/tests/classify_unittest.cc
src/bin/dhcp6/tests/classify_unittest.cc

index d88d99d0268891e68ca06bc5ce261b5a63b599f8..e9a39c27175bd15764d286e97394c544e6e4ba88 100644 (file)
@@ -1328,10 +1328,6 @@ TEST_F(ClassifyTest, requiredNotDefined) {
     Pkt4Ptr resp = client.getContext().response_;
     ASSERT_TRUE(resp);
     EXPECT_EQ("10.0.0.10", resp->getYiaddr().toText());
-
-    // Check domain-name-servers option
-    OptionPtr opt = resp->getOption(DHO_DOMAIN_NAME_SERVERS);
-    EXPECT_FALSE(opt);
 }
 
 // This test checks the handling for the DROP special class.
index 5825086750324afdc6d173a744b7996ae0b55b55..04556809b8bb9fe71ebac3ee8be52242f4890075 100644 (file)
@@ -2364,10 +2364,6 @@ TEST_F(ClassifyTest, requiredNotDefined) {
     EXPECT_EQ(1, client.getLeaseNum());
     Pkt6Ptr resp = client.getContext().response_;
     ASSERT_TRUE(resp);
-
-    // Check dns-servers option
-    OptionPtr opt = resp->getOption(D6O_NAME_SERVERS);
-    EXPECT_FALSE(opt);
 }
 
 // This test checks the complex membership from HA with server1 telephone.