Browse Source

[2421] Put code inside EXPECT_NO_THROW

Mukund Sivaraman 12 years ago
parent
commit
e650a0f7e5
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/lib/datasrc/tests/client_list_unittest.cc

+ 5 - 2
src/lib/datasrc/tests/client_list_unittest.cc

@@ -856,8 +856,11 @@ TEST_F(ListTest, BadMasterFile) {
         "   }"
         "}]"));
 
-    // this should not throw even if there are any zone loading errors.
-    list_->configure(elem, true);
+    EXPECT_NO_THROW({
+        // This should not throw even if there are any zone loading
+        // errors.
+        list_->configure(elem, true);
+    });
 
     positiveResult(list_->find(Name("example.com."), true), ds_[0],
                    Name("example.com."), true, "example.com", true);