@@ -85,21 +85,17 @@ class TestHAImpl : public HAImpl {
85
85
86
86
// / @brief Mock function checking if the lease should be reclaimed by this server.
87
87
// /
88
- // / @param service pointer to the HA service to which the lease belongs.
89
- // / @param lease4 pointer to the DHCPv4 lease being reclaimed.
90
88
// / @return true if the DHCPv4 lease should be reclaimed by this server instance,
91
89
// / false otherwise.
92
- virtual bool shouldReclaim (const HAServicePtr& service, const Lease4Ptr& lease4) const {
90
+ virtual bool shouldReclaim (const HAServicePtr& /* service*/ , const Lease4Ptr& /* lease4*/ ) const {
93
91
return (should_reclaim_dhcpv4_lease_);
94
92
}
95
93
96
94
// / @brief Mock function checking if the lease should be reclaimed by this server.
97
95
// /
98
- // / @param service pointer to the HA service to which the lease belongs.
99
- // / @param lease6 pointer to the DHCPv4 lease being reclaimed.
100
96
// / @return true if the DHCPv6 lease should be reclaimed by this server instance,
101
97
// / false otherwise.
102
- virtual bool shouldReclaim (const HAServicePtr& service, const Lease6Ptr& lease6) const {
98
+ virtual bool shouldReclaim (const HAServicePtr& /* service*/ , const Lease6Ptr& /* lease6*/ ) const {
103
99
return (should_reclaim_dhcpv6_lease_);
104
100
}
105
101
@@ -1734,6 +1730,8 @@ TEST_F(HAImplTest, lease4ExpireHubNoSubnet) {
1734
1730
lease4->subnet_id_ = 7 ;
1735
1731
callout_handle->setArgument (" lease4" , lease4);
1736
1732
1733
+ // Reclamation should continue because this server's jurisdiction is
1734
+ // indeterminate.
1737
1735
test_ha_impl_->should_reclaim_dhcpv4_lease_ = false ;
1738
1736
ASSERT_NO_THROW (test_ha_impl_->lease4Expire (*callout_handle));
1739
1737
EXPECT_EQ (CalloutHandle::NEXT_STEP_CONTINUE, callout_handle->getStatus ());
0 commit comments