Browse Source

[2164] Add another testcase when RRSIGs are removed

Mukund Sivaraman 13 years ago
parent
commit
98ce97d9b8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/dns/tests/rrset_unittest.cc

+ 3 - 1
src/lib/dns/tests/rrset_unittest.cc

@@ -354,7 +354,9 @@ TEST_F(RRsetRRSIGTest, getSIGRdataCount) {
                                          "20000101000000 20000201000000 "
                                          "12345 example.com. FAKEFAKEFAKE"));
     rrset_a->addRRsig(rrset_rrsig);
-
     EXPECT_EQ(2, rrset_a->getSIGRdataCount());
+
+    rrset_a->removeRRsig();
+    EXPECT_EQ(0, rrset_a->getSIGRdataCount());
 }
 }