summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/tests
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-06-29 09:31:35 +0200
committerRazvan Becheriu <razvan@isc.org>2023-06-29 19:54:14 +0200
commit70f4321e4ca7962a2b9eae102920aee19b46d45f (patch)
treef833dc7adc46467fd7c971a1be890bab324ad064 /src/lib/dhcp/tests
parent[#2725] addressed review comments (diff)
downloadkea-70f4321e4ca7962a2b9eae102920aee19b46d45f.tar.xz
kea-70f4321e4ca7962a2b9eae102920aee19b46d45f.zip
[#2725] fixed v6 reservations
Diffstat (limited to 'src/lib/dhcp/tests')
-rw-r--r--src/lib/dhcp/tests/libdhcp++_unittest.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/dhcp/tests/libdhcp++_unittest.cc b/src/lib/dhcp/tests/libdhcp++_unittest.cc
index 9f7ff5187f..7c05b97859 100644
--- a/src/lib/dhcp/tests/libdhcp++_unittest.cc
+++ b/src/lib/dhcp/tests/libdhcp++_unittest.cc
@@ -1121,7 +1121,7 @@ TEST_F(LibDhcpTest, splitOptionNoBufferMultiThreading) {
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that split options works if there is only one byte
@@ -1177,7 +1177,7 @@ TEST_F(LibDhcpTest, splitOptionOneByteLeftBufferMultiThreading) {
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that split options for v4 is working correctly.
@@ -1289,10 +1289,11 @@ TEST_F(LibDhcpTest, splitOptionWithSuboptionAtLimitMultiThreading) {
auto const& work = [&] {
splitOptionWithSuboptionAtLimit(bottom_opt, middle_opt, top_opt);
};
+
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that split options for v4 is working correctly.
@@ -1346,7 +1347,7 @@ TEST_F(LibDhcpTest, splitLongOptionMultiThreading) {
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that split options for v4 is working correctly even if
@@ -1432,7 +1433,7 @@ TEST_F(LibDhcpTest, splitOptionWithSuboptionWhichOverflowMultiThreading) {
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that split options for v4 is working correctly.
@@ -1530,7 +1531,7 @@ TEST_F(LibDhcpTest, splitLongOptionWithLongSuboptionMultiThreading) {
boost::shared_ptr<CallBack> call_back = boost::make_shared<CallBack>(work);
tp.add(call_back);
}
- ASSERT_TRUE(tp.wait(5));
+ ASSERT_TRUE(tp.wait(10));
}
// This test verifies that fuse options for v4 is working correctly.