Browse Source

[2432] Use ASSERT_TRUE to not crash test suite in some places

Mukund Sivaraman 12 years ago
parent
commit
8e118d8e64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/tests/rrset_collection_unittest.cc

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

@@ -47,12 +47,12 @@ TEST_F(RRsetCollectionTest, istreamConstructor) {
     RRsetCollectionBase::Iterator iter = collection.begin();
     RRsetCollectionBase::Iterator iter2 = collection2.begin();
     while (iter != collection.end()) {
-         EXPECT_TRUE(iter2 != collection2.end());
+         ASSERT_TRUE(iter2 != collection2.end());
          EXPECT_EQ((*iter).toText(), (*iter2).toText());
          ++iter;
          ++iter2;
     }
-    EXPECT_TRUE(iter2 == collection2.end());
+    ASSERT_TRUE(iter2 == collection2.end());
 }
 
 template <typename T, typename TP>