diff options
Diffstat (limited to 'src/lib/dhcp/tests/libdhcp++_unittest.cc')
-rw-r--r-- | src/lib/dhcp/tests/libdhcp++_unittest.cc | 13 |
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. |