From: Razvan Becheriu Date: Fri, 22 Jul 2022 12:31:19 +0000 (+0300) Subject: [#2474] fixed comments X-Git-Tag: Kea-2.2.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1481a78d244021588998d89dd29d754d71a7abd5;p=thirdparty%2Fkea.git [#2474] fixed comments --- diff --git a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc index 0497e5edf0..2a81215d96 100644 --- a/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc @@ -2826,13 +2826,13 @@ Dhcpv4SrvTest::loadConfigFile(const string& path) { // Close the command socket (if it exists). CommandMgr::instance().closeCommandSocket(); - // CommandMgr uses IO service to run asynchronous socket operations. + // Reset CommandMgr IO service. CommandMgr::instance().setIOService(IOServicePtr()); - // LeaseMgr uses IO service to run asynchronous timers. + // Reset LeaseMgr IO service. LeaseMgr::setIOService(IOServicePtr()); - // HostMgr uses IO service to run asynchronous timers. + // Reset HostMgr IO service. HostMgr::setIOService(IOServicePtr()); } @@ -2918,6 +2918,8 @@ TEST_F(Dhcpv4SrvTest, portsServerPortMultiTHreading) { portsServerPort(); } +/// @brief Check that example files from documentation are valid (can be parsed +/// and loaded). TEST_F(Dhcpv4SrvTest, checkConfigFiles) { checkConfigFiles(); } diff --git a/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc b/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc index 5c9c3e48c0..3dc887a0c0 100644 --- a/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc +++ b/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc @@ -210,13 +210,13 @@ Dhcpv6SrvTest::loadConfigFile(const string& path) { // Close the command socket (if it exists). CommandMgr::instance().closeCommandSocket(); - // CommandMgr uses IO service to run asynchronous socket operations. + // Reset CommandMgr IO service. CommandMgr::instance().setIOService(IOServicePtr()); - // LeaseMgr uses IO service to run asynchronous timers. + // Reset LeaseMgr IO service. LeaseMgr::setIOService(IOServicePtr()); - // HostMgr uses IO service to run asynchronous timers. + // Reset HostMgr IO service. HostMgr::setIOService(IOServicePtr()); } @@ -3578,6 +3578,8 @@ TEST_F(Dhcpv6SrvTest, calculateTeeTimers) { } } +/// @brief Check that example files from documentation are valid (can be parsed +/// and loaded). TEST_F(Dhcpv6SrvTest, checkConfigFiles) { checkConfigFiles(); }