Make ExternalSSTFileTest::CompactionDeadlock more deterministic

Summary:
It's not always true that `ASSERT_EQ(running_threads.load(), 2);`
Closes https://github.com/facebook/rocksdb/pull/1736

Differential Revision: D4374091

Pulled By: IslamAbdelRahman

fbshipit-source-id: 4f70bbd
main
Islam AbdelRahman 8 years ago committed by Facebook Github Bot
parent c963460dbc
commit 76711b6e77
  1. 2
      db/external_sst_file_test.cc

@ -1760,8 +1760,6 @@ TEST_F(ExternalSSTFileTest, CompactionDeadlock) {
// `DBImpl::AddFile:Start` will wait until we be here
TEST_SYNC_POINT("ExternalSSTFileTest::DeadLock:1");
ASSERT_EQ(running_threads.load(), 2);
// Wait for IngestExternalFile() to start and aquire mutex
TEST_SYNC_POINT("ExternalSSTFileTest::DeadLock:2");

Loading…
Cancel
Save