Commit bad2b659 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

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

parent 36a82e6a
......@@ -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;
......
......@@ -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);
}
////////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment