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
This commit is contained in:
Islam AbdelRahman 2017-01-03 16:09:38 -08:00 committed by Facebook Github Bot
parent c963460dbc
commit 76711b6e77

View File

@ -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");