diff options
author | Razvan Becheriu <razvan@isc.org> | 2021-08-24 21:29:39 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2021-08-24 21:29:39 +0200 |
commit | a001da5d6645db9b4f47131152d28c7bab96906c (patch) | |
tree | 8513c338f2aede4021ecbada52da9c774cc646e1 /src/lib/util | |
parent | [#2043] code cleanup (diff) | |
download | kea-a001da5d6645db9b4f47131152d28c7bab96906c.tar.xz kea-a001da5d6645db9b4f47131152d28c7bab96906c.zip |
[#2043] fixed unittests
Diffstat (limited to 'src/lib/util')
-rw-r--r-- | src/lib/util/tests/multi_threading_mgr_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/tests/multi_threading_mgr_unittest.cc b/src/lib/util/tests/multi_threading_mgr_unittest.cc index 4d9dd7d547..ae0fa83e11 100644 --- a/src/lib/util/tests/multi_threading_mgr_unittest.cc +++ b/src/lib/util/tests/multi_threading_mgr_unittest.cc @@ -534,7 +534,7 @@ TEST_F(CriticalSectionCallbackTest, invocations) { // callbacks execute at the appropriate times and we can do // so repeatedly. for (int i = 0; i < 3; ++i) { - runCriticalSections({1 ,3}, {2, 4}); + runCriticalSections({1 ,3}, {4, 2}); } // Now remove the first set of callbacks. @@ -557,6 +557,9 @@ TEST_F(CriticalSectionCallbackTest, invocationsWithExceptions) { // thread pool should be stopped EXPECT_EQ(thread_pool.size(), 0); + // Apply multi-threading configuration with 16 threads and queue size 256. + MultiThreadingMgr::instance().apply(true, 16, 256); + // Add two sets of CriticalSection call backs. MultiThreadingMgr::instance().addCriticalSectionCallbacks("observed", std::bind(&CriticalSectionCallbackTest::observedException, this), @@ -568,9 +571,6 @@ TEST_F(CriticalSectionCallbackTest, invocationsWithExceptions) { std::bind(&CriticalSectionCallbackTest::three, this), std::bind(&CriticalSectionCallbackTest::four, this)); - // Apply multi-threading configuration with 16 threads and queue size 256. - MultiThreadingMgr::instance().apply(true, 16, 256); - // Make three passes over nested CriticalSections to ensure // callbacks execute at the appropriate times and we can do // so repeatedly. |