Improve GetThreadStatus to avoid false alarm in some case.

main
Yueh-Hsuan Chiang 10 years ago
parent c91cdd59c1
commit bf9aa4dfcd
  1. 3
      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(

Loading…
Cancel
Save