mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 13:37:55 +00:00
[#1074] minor changes
This commit is contained in:
@@ -341,8 +341,8 @@ TEST(CqlOpenTest, OpenDatabase) {
|
|||||||
// Schema needs to be created for the test to work.
|
// Schema needs to be created for the test to work.
|
||||||
createCqlSchema();
|
createCqlSchema();
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly and tidy up.
|
// Check that lease manager opens the database correctly and tidy up. If it
|
||||||
// If it fails, print the error message.
|
// fails, print the error message.
|
||||||
try {
|
try {
|
||||||
LeaseMgrFactory::create(validCqlConnectionString());
|
LeaseMgrFactory::create(validCqlConnectionString());
|
||||||
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
||||||
@@ -354,7 +354,7 @@ TEST(CqlOpenTest, OpenDatabase) {
|
|||||||
<< "*** before the CQL tests will run correctly.\n";
|
<< "*** before the CQL tests will run correctly.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly with a longer
|
// Check that lease manager opens the database correctly with a longer
|
||||||
// timeout. If it fails, print the error message.
|
// timeout. If it fails, print the error message.
|
||||||
try {
|
try {
|
||||||
// CQL specifies the timeout values in ms, not seconds. Therefore
|
// CQL specifies the timeout values in ms, not seconds. Therefore
|
||||||
|
@@ -117,8 +117,8 @@ TEST(MySqlOpenTest, OpenDatabase) {
|
|||||||
// Schema needs to be created for the test to work.
|
// Schema needs to be created for the test to work.
|
||||||
createMySQLSchema(true);
|
createMySQLSchema(true);
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly and tidy up.
|
// Check that lease manager opens the database correctly and tidy up. If it
|
||||||
// If it fails, print the error message.
|
// fails, print the error message.
|
||||||
try {
|
try {
|
||||||
LeaseMgrFactory::create(validMySQLConnectionString());
|
LeaseMgrFactory::create(validMySQLConnectionString());
|
||||||
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
||||||
@@ -130,7 +130,7 @@ TEST(MySqlOpenTest, OpenDatabase) {
|
|||||||
<< "*** before the MySQL tests will run correctly.\n";
|
<< "*** before the MySQL tests will run correctly.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly with a longer
|
// Check that lease manager opens the database correctly with a longer
|
||||||
// timeout. If it fails, print the error message.
|
// timeout. If it fails, print the error message.
|
||||||
try {
|
try {
|
||||||
string connection_string = validMySQLConnectionString() + string(" ") +
|
string connection_string = validMySQLConnectionString() + string(" ") +
|
||||||
@@ -210,8 +210,8 @@ TEST(MySqlOpenTest, OpenDatabaseMultiThreading) {
|
|||||||
// Schema needs to be created for the test to work.
|
// Schema needs to be created for the test to work.
|
||||||
createMySQLSchema(true);
|
createMySQLSchema(true);
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly and tidy up.
|
// Check that lease manager opens the database correctly and tidy up. If it
|
||||||
// If it fails, print the error message.
|
// fails, print the error message.
|
||||||
try {
|
try {
|
||||||
LeaseMgrFactory::create(validMySQLConnectionString());
|
LeaseMgrFactory::create(validMySQLConnectionString());
|
||||||
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
||||||
|
@@ -117,8 +117,8 @@ TEST(PgSqlOpenTest, OpenDatabase) {
|
|||||||
// Schema needs to be created for the test to work.
|
// Schema needs to be created for the test to work.
|
||||||
createPgSQLSchema();
|
createPgSQLSchema();
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly and tidy up.
|
// Check that lease manager opens the database correctly and tidy up. If it
|
||||||
// If it fails, print the error message.
|
// fails, print the error message.
|
||||||
try {
|
try {
|
||||||
LeaseMgrFactory::create(validPgSQLConnectionString());
|
LeaseMgrFactory::create(validPgSQLConnectionString());
|
||||||
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
||||||
@@ -130,7 +130,7 @@ TEST(PgSqlOpenTest, OpenDatabase) {
|
|||||||
<< "*** before the PostgreSQL tests will run correctly.\n";
|
<< "*** before the PostgreSQL tests will run correctly.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly with a longer
|
// Check that lease manager opens the database correctly with a longer
|
||||||
// timeout. If it fails, print the error message.
|
// timeout. If it fails, print the error message.
|
||||||
try {
|
try {
|
||||||
string connection_string = validPgSQLConnectionString() + string(" ") +
|
string connection_string = validPgSQLConnectionString() + string(" ") +
|
||||||
@@ -207,8 +207,8 @@ TEST(PgSqlOpenTest, OpenDatabaseMultiThreading) {
|
|||||||
// Schema needs to be created for the test to work.
|
// Schema needs to be created for the test to work.
|
||||||
createPgSQLSchema();
|
createPgSQLSchema();
|
||||||
|
|
||||||
// Check that lease manager open the database opens correctly and tidy up.
|
// Check that lease manager opens the database correctly and tidy up. If it
|
||||||
// If it fails, print the error message.
|
// fails, print the error message.
|
||||||
try {
|
try {
|
||||||
LeaseMgrFactory::create(validPgSQLConnectionString());
|
LeaseMgrFactory::create(validPgSQLConnectionString());
|
||||||
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
EXPECT_NO_THROW((void)LeaseMgrFactory::instance());
|
||||||
|
Reference in New Issue
Block a user