From 70f4321e4ca7962a2b9eae102920aee19b46d45f Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Thu, 29 Jun 2023 10:31:35 +0300 Subject: [#2725] fixed v6 reservations --- src/lib/dhcp/tests/libdhcp++_unittest.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/lib/dhcp/tests/libdhcp++_unittest.cc') 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 call_back = boost::make_shared(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 call_back = boost::make_shared(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 call_back = boost::make_shared(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 call_back = boost::make_shared(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 call_back = boost::make_shared(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 call_back = boost::make_shared(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. -- cgit v1.2.3