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
main
agiardullo 9 years ago
parent 1627c4b1b3
commit a2422f0533
  1. 1
      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

Loading…
Cancel
Save