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
This commit is contained in:
agiardullo 2016-01-05 18:16:59 -08:00
parent 1627c4b1b3
commit a2422f0533

View file

@ -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