From bf9aa4dfcd27e7dc4f55d63d0adf5abaf86b06bd Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 13 Jan 2015 00:38:09 -0800 Subject: [PATCH] Improve GetThreadStatus to avoid false alarm in some case. --- db/db_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/db_test.cc b/db/db_test.cc index 7146f9585..1bddde8b4 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9444,7 +9444,8 @@ TEST(DBTest, GetThreadStatus) { } // Verify the total number of threades ASSERT_EQ( - thread_list.size(), + thread_type_counts[ThreadStatus::HIGH_PRIORITY] + + thread_type_counts[ThreadStatus::LOW_PRIORITY], kHighPriCounts[test] + kLowPriCounts[test]); // Verify the number of high-priority threads ASSERT_EQ(