From a2422f05339736fbed275656ca491c50932b4a22 Mon Sep 17 00:00:00 2001 From: agiardullo Date: Tue, 5 Jan 2016 18:16:59 -0800 Subject: [PATCH] fix potential test SleepingTask race condition Summary: Make sure SleepingTask has bene run before it goes out of scope. Test Plan: run test Reviewers: kradhakrishnan Reviewed By: kradhakrishnan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D52581 --- db/db_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_test.cc b/db/db_test.cc index ff983c36c..34b94cfdf 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -9158,6 +9158,7 @@ TEST_F(DBTest, HardLimit) { ASSERT_GE(callback_count.load(), 1); rocksdb::SyncPoint::GetInstance()->DisableProcessing(); + sleeping_task_low.WaitUntilDone(); } #ifndef ROCKSDB_LITE