]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1928] Use EXPECT_EQ instead of ASSERT_EQ
authorMarcin Siodelski <marcin@isc.org>
Tue, 20 Jul 2021 10:03:25 +0000 (12:03 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 21 Jul 2021 10:49:50 +0000 (10:49 +0000)
src/lib/mysql/tests/mysql_connection_unittest.cc

index 2afc207a816e7cc92f0e3e980f78e94a5d400ad6..f8cb16570769e8858ea361382401ad22aff459b9 100644 (file)
@@ -547,7 +547,7 @@ TEST_F(MySqlConnectionTest, transactions) {
     auto result = rawStatement("SELECT COUNT(*) FROM mysql_connection_test");
     ASSERT_EQ(1, result.size());
     ASSERT_EQ(1, result[0].size());
-    ASSERT_EQ("2", result[0][0]);
+    EXPECT_EQ("2", result[0][0]);
 
     // Add third row but roll back the transaction. We should still have
     // two rows in the table.
@@ -556,7 +556,7 @@ TEST_F(MySqlConnectionTest, transactions) {
     conn_.rollback();
     ASSERT_EQ(1, result.size());
     ASSERT_EQ(1, result[0].size());
-    ASSERT_EQ("2", result[0][0]);
+    EXPECT_EQ("2", result[0][0]);
 
     // Nested transaction. The inner transaction should be ignored and the outer
     // transaction rolled back. We should still have two rows in the database.
@@ -569,7 +569,7 @@ TEST_F(MySqlConnectionTest, transactions) {
     result = rawStatement("SELECT COUNT(*) FROM mysql_connection_test");
     ASSERT_EQ(1, result.size());
     ASSERT_EQ(1, result[0].size());
-    ASSERT_EQ("2", result[0][0]);
+    EXPECT_EQ("2", result[0][0]);
 
     // Nested transaction. The inner transaction is rolled back but this should
     // be ignored because nested transactions are not supported. We should
@@ -583,7 +583,7 @@ TEST_F(MySqlConnectionTest, transactions) {
     result = rawStatement("SELECT COUNT(*) FROM mysql_connection_test");
     ASSERT_EQ(1, result.size());
     ASSERT_EQ(1, result[0].size());
-    ASSERT_EQ("4", result[0][0]);
+    EXPECT_EQ("4", result[0][0]);
 }
 
 TEST_F(MySqlConnectionWithPrimaryKeyTest, select) {