]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1716] fixed unittests for bsd
authorRazvan Becheriu <razvan@isc.org>
Thu, 7 Apr 2022 20:15:33 +0000 (23:15 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 7 Apr 2022 20:15:33 +0000 (23:15 +0300)
src/lib/dhcp/tests/iface_mgr_unittest.cc
src/lib/dhcpsrv/tests/cfg_iface_unittest.cc

index 535a74667383b74a066ab283eec3ebc6954be79f..a126169eb2638d57e9157a77759a1769aa725867 100644 (file)
@@ -2499,7 +2499,7 @@ TEST_F(IfaceMgrTest, openSockets6SkipOpen) {
     // and bind to this address and port should fail.
     ASSERT_NO_THROW(ifacemgr.openSocket("eth0",
                                         IOAddress("fe80::3a60:77ff:fed5:cdef"),
-                                        DHCP6_SERVER_PORT, true));
+                                        DHCP6_SERVER_PORT, false));
 
     // The function doesn't throw an exception when it tries to open a socket
     // and bind it to the address in use but the skip open flag is provided.
index a9a9260dd932dacec5e0555899ef949785846e54..a15d8f1ff7a9faee4f1eea84f101bdc392f7f34f 100644 (file)
@@ -638,8 +638,7 @@ TEST_F(CfgIfaceTest, retryOpenServiceSockets4) {
     // Set the callback to count calls and check wait time
     size_t total_calls = 0;
     auto last_call_time = std::chrono::system_clock::time_point::min();
-    auto open_callback = [&total_calls, &last_call_time, RETRIES, WAIT_TIME,
-                          CALLS_PER_RETRY](uint16_t) {
+    auto open_callback = [&total_calls, &last_call_time, WAIT_TIME, CALLS_PER_RETRY](uint16_t) {
         auto now = std::chrono::system_clock::now();
 
         // Check waiting time only for the first call in a retry attempt.
@@ -837,8 +836,7 @@ TEST_F(CfgIfaceTest, retryOpenServiceSockets6) {
     // Set the callback to count calls and check wait time
     size_t total_calls = 0;
     auto last_call_time = std::chrono::system_clock::time_point::min();
-    auto open_callback = [&total_calls, &last_call_time, RETRIES, WAIT_TIME,
-                          CALLS_PER_RETRY](uint16_t) {
+    auto open_callback = [&total_calls, &last_call_time, WAIT_TIME, CALLS_PER_RETRY](uint16_t) {
         auto now = std::chrono::system_clock::now();
 
         // Check waiting time only for the first call in a retry attempt.