Update tests

This commit is contained in:
an-tao 2018-12-03 18:12:19 +08:00
parent a5c0d33011
commit 56c2cfb609
1 changed files with 8 additions and 1 deletions

View File

@ -40,7 +40,14 @@ void testOutput(bool isGood, const std::string &testMessage)
int main()
{
trantor::Logger::setLogLevel(trantor::Logger::DEBUG);
#if USE_POSTGRESQL
auto clientPtr = DbClient::newPgClient("host=127.0.0.1 port=5432 dbname=postgres user=antao", 1);
#elif USE_MYSQL
auto clientPtr = DbClient::newMysqlClient("host=127.0.0.1 port=3306 dbname=test user=root", 1);
#else
DbClientPtr clientPtr;
return -1;
#endif
LOG_DEBUG << "start!";
sleep(1);
//Prepare the test environment
@ -112,4 +119,4 @@ int main()
///
/// Model and Mapper....
getchar();
}
}