summaryrefslogtreecommitdiffstats
path: root/src/lib/mysql
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2021-07-20 12:03:25 +0200
committerMarcin Siodelski <marcin@isc.org>2021-07-21 12:49:50 +0200
commitc38c2f21b61ac07968c4e9b3acf5727c4bc24e5a (patch)
tree5d1a9e976dcdba12ba140cc8db9d3ab7f258ed4a /src/lib/mysql
parent[#1928] Added missing messages comment (diff)
downloadkea-c38c2f21b61ac07968c4e9b3acf5727c4bc24e5a.tar.xz
kea-c38c2f21b61ac07968c4e9b3acf5727c4bc24e5a.zip
[#1928] Use EXPECT_EQ instead of ASSERT_EQ
Diffstat (limited to 'src/lib/mysql')
-rw-r--r--src/lib/mysql/tests/mysql_connection_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/mysql/tests/mysql_connection_unittest.cc b/src/lib/mysql/tests/mysql_connection_unittest.cc
index 2afc207a81..f8cb165707 100644
--- a/src/lib/mysql/tests/mysql_connection_unittest.cc
+++ b/src/lib/mysql/tests/mysql_connection_unittest.cc
@@ -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) {