summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/tests
diff options
context:
space:
mode:
authorMarcin Siodelski <marcin@isc.org>2015-11-02 04:30:58 +0100
committerMarcin Siodelski <marcin@isc.org>2015-11-02 04:30:58 +0100
commit81467147e2a1e8b7615fc597295b45c221199076 (patch)
treec61223741cc5a401a558568640e0cd6e412b476e /src/bin/dhcp6/tests
parent[master] AUTHORS updated after recent changes. (diff)
downloadkea-81467147e2a1e8b7615fc597295b45c221199076.tar.xz
kea-81467147e2a1e8b7615fc597295b45c221199076.zip
[master] Use LeaseMgrFactory::instance() rather than constructor.
This fixes issues reported by the coverity scans recently.
Diffstat (limited to 'src/bin/dhcp6/tests')
-rw-r--r--src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc4
-rw-r--r--src/bin/dhcp6/tests/kea_controller_unittest.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
index 967bdb2067..7428796271 100644
--- a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
+++ b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
@@ -436,7 +436,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, controlLeasesReclaim) {
lease1->cltt_ = time(NULL) - 100;
// Add leases to the database.
- LeaseMgr& lease_mgr = LeaseMgrFactory().instance();
+ LeaseMgr& lease_mgr = LeaseMgrFactory::instance();
ASSERT_NO_THROW(lease_mgr.addLease(lease0));
ASSERT_NO_THROW(lease_mgr.addLease(lease1));
@@ -498,7 +498,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, controlLeasesReclaimRemove) {
lease1->cltt_ = time(NULL) - 100;
// Add leases to the database.
- LeaseMgr& lease_mgr = LeaseMgrFactory().instance();
+ LeaseMgr& lease_mgr = LeaseMgrFactory::instance();
ASSERT_NO_THROW(lease_mgr.addLease(lease0));
ASSERT_NO_THROW(lease_mgr.addLease(lease1));
diff --git a/src/bin/dhcp6/tests/kea_controller_unittest.cc b/src/bin/dhcp6/tests/kea_controller_unittest.cc
index 4778670673..e00c9c9809 100644
--- a/src/bin/dhcp6/tests/kea_controller_unittest.cc
+++ b/src/bin/dhcp6/tests/kea_controller_unittest.cc
@@ -321,7 +321,7 @@ TEST_F(JSONFileBackendTest, timers) {
lease_reclaimed->state_ = Lease6::STATE_EXPIRED_RECLAIMED;
// Add leases to the database.
- LeaseMgr& lease_mgr = LeaseMgrFactory().instance();
+ LeaseMgr& lease_mgr = LeaseMgrFactory::instance();
ASSERT_NO_THROW(lease_mgr.addLease(lease_expired));
ASSERT_NO_THROW(lease_mgr.addLease(lease_reclaimed));