2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[github21] Compilation fix (PG versions constants updated in tests)

This commit is contained in:
Tomek Mrugalski
2016-06-23 13:04:54 +02:00
parent 36a82e6a74
commit bad2b659bb
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ namespace dhcp {
class PgSqlLease4Exchange;
class PgSqlLease6Exchange;
/// Defines PostgreSQL backend version: 2.0
/// Defines PostgreSQL backend version: 3.0
const uint32_t PG_CURRENT_VERSION = 3;
const uint32_t PG_CURRENT_MINOR = 0;

View File

@@ -190,8 +190,8 @@ TEST_F(PgSqlLeaseMgrTest, checkVersion) {
// Check version
pair<uint32_t, uint32_t> version;
ASSERT_NO_THROW(version = lmptr_->getVersion());
EXPECT_EQ(PG_SCHEMA_VERSION_MAJOR, version.first);
EXPECT_EQ(PG_SCHEMA_VERSION_MINOR, version.second);
EXPECT_EQ(PG_CURRENT_VERSION, version.first);
EXPECT_EQ(PG_CURRENT_MINOR, version.second);
}
////////////////////////////////////////////////////////////////////////////////