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:
parent
1627c4b1b3
commit
a2422f0533
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user