From: Thomas Markwalder Date: Fri, 18 Oct 2019 14:40:31 +0000 (-0400) Subject: [#754,!558] Addressed belated review comment X-Git-Tag: Kea-1.7.1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c223380012b82c93292528b593002c2b80b5361b;p=thirdparty%2Fkea.git [#754,!558] Addressed belated review comment --- diff --git a/src/lib/dhcpsrv/tests/alloc_engine_utils.h b/src/lib/dhcpsrv/tests/alloc_engine_utils.h index 2b547a4f55..3a24f0520b 100644 --- a/src/lib/dhcpsrv/tests/alloc_engine_utils.h +++ b/src/lib/dhcpsrv/tests/alloc_engine_utils.h @@ -440,7 +440,7 @@ public: uint8_t prefix_len); /// @brief Utility function that decrements cltt of a persisted lease - /// + /// /// This function is used to simulate the passage of time by decrementing /// the lease's cltt, currently by 1. It fetches the desired lease from the /// lease manager, decrements the cltt, then updates the lease in the lease @@ -448,14 +448,14 @@ public: /// /// @param[in][out] lease pointer reference to the lease to modify. Upon /// return it will point to the newly updated lease. - void + void rollbackPersistedCltt(Lease6Ptr& lease) { - ASSERT_TRUE(lease) << "rollbackCltt lease is empty"; - - // Fetch it, so we can update it. + ASSERT_TRUE(lease) << "rollbackPersistedCltt lease is empty"; + + // Fetch it, so we can update it. Lease6Ptr from_mgr = LeaseMgrFactory::instance().getLease6(lease->type_, lease->addr_); - ASSERT_TRUE(from_mgr) << "rollbackCltt: lease not found?"; + ASSERT_TRUE(from_mgr) << "rollbackPersistedCltt: lease not found?"; // Decrement cltt then update it in the manager. --from_mgr->cltt_;