Browse Source

[1627] Fix type of exception thrown in testcase

NameParserExceptions are now caught and AuthConfigError is thrown.
Mukund Sivaraman 13 years ago
parent
commit
376c01fc1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/auth/tests/config_unittest.cc

+ 1 - 1
src/bin/auth/tests/config_unittest.cc

@@ -332,7 +332,7 @@ TEST_F(MemoryDatasrcConfigTest, addBadZone) {
                       "[{\"type\": \"memory\","
                       "  \"zones\": [{\"origin\": \"example..com\","
                       "               \"file\": \"example.zone\"}]}]")),
-                 EmptyLabel);
+                 AuthConfigError);
 
     // bogus RR class name
     EXPECT_THROW(parser->build(