Browse Source

[2522] fix RP unit test

Paul Selkirk 12 years ago
parent
commit
c8aff6addd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/tests/rdata_rp_unittest.cc

+ 2 - 2
src/lib/dns/tests/rdata_rp_unittest.cc

@@ -140,8 +140,8 @@ TEST_F(Rdata_RP_Test, createFromLexer) {
     EXPECT_FALSE(test::createRdataUsingLexer(RRType::RP(), RRClass::IN(),
                                              "root.example.com."));
 
-    // acceptable??
-    EXPECT_NO_THROW(test::createRdataUsingLexer(RRType::RP(), RRClass::IN(),
+    // Extra text at end of line
+    EXPECT_FALSE(test::createRdataUsingLexer(RRType::RP(), RRClass::IN(),
                                                 "root.example.com. "
                                                 "rp-text.example.com. "
                                                 "redundant.example.com."));