diff --git a/src/lib/util/multi_threading_mgr.h b/src/lib/util/multi_threading_mgr.h index f6230df70f..2fe8e50790 100644 --- a/src/lib/util/multi_threading_mgr.h +++ b/src/lib/util/multi_threading_mgr.h @@ -81,7 +81,7 @@ public: /// @brief Removes all callbacks from the list. void removeAll(); - /// @brief Fetches the list of callbacks pairs. + /// @brief Fetches the list of callback pairs. const std::list& getCallbackPairs(); private: diff --git a/src/lib/util/tests/multi_threading_mgr_unittest.cc b/src/lib/util/tests/multi_threading_mgr_unittest.cc index a829d288e9..64182a871e 100644 --- a/src/lib/util/tests/multi_threading_mgr_unittest.cc +++ b/src/lib/util/tests/multi_threading_mgr_unittest.cc @@ -386,11 +386,6 @@ public: if (entries.size()) { // We expect entry invocations. ASSERT_EQ(invocations_.size(), entries.size()); - for (auto val :invocations_) { - std::cout << val << " "; - } - std::cout << std::endl; - ASSERT_TRUE(invocations_ == entries); } else { // We do not expect entry invocations. @@ -436,8 +431,8 @@ public: std::vector invocations_; }; -/// @brief Verifies that critical section callback maintenance. -/// Catch invalid pairs, add pairs, remover pairs. +/// @brief Verifies critical section callback maintenance: +/// catch invalid pairs, add pairs, remove pairs. TEST_F(CriticalSectionCallbackTest, addAndRemove) { auto& mgr = MultiThreadingMgr::instance();