MXS-1929: Add test case

Added basic a test case that checks that service creation and destruction
works as expected.
This commit is contained in:
Markus Mäkelä
2018-07-23 15:38:12 +03:00
parent fb3101f7c4
commit 605a723d97
5 changed files with 129 additions and 3 deletions

View File

@ -270,7 +270,7 @@ public:
{
mysql_close(m_conn);
m_conn = open_conn_db(m_port, m_host, m_db, m_user, m_pw, m_ssl);
return m_conn != nullptr;
return m_conn != nullptr && mysql_errno(m_conn) == 0;
}
void disconnect()