Skip to content

Commit

Permalink
Fixes hanging issue in BlockBasedIndexPopulatorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint committed Mar 2, 2019
1 parent 517e963 commit 9d178d1
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -89,8 +89,7 @@ public void shouldAwaitMergeToBeFullyAbortedBeforeLeavingCloseMethod() throws Ex
public void shouldCorrectlyDecideToAwaitMergeDependingOnProgress() throws Throwable public void shouldCorrectlyDecideToAwaitMergeDependingOnProgress() throws Throwable
{ {
// given // given
TrappingMonitor monitor = new TrappingMonitor(); BlockBasedIndexPopulator<GenericKey,NativeIndexValue> populator = instantiatePopulatorWithSomeData( BlockStorage.Monitor.NO_MONITOR );
BlockBasedIndexPopulator<GenericKey,NativeIndexValue> populator = instantiatePopulatorWithSomeData( monitor );


// when // when
Race race = new Race(); Race race = new Race();
Expand All @@ -103,7 +102,7 @@ public void shouldCorrectlyDecideToAwaitMergeDependingOnProgress() throws Throwa
ephemeralFileSystem.assertNoOpenFiles(); ephemeralFileSystem.assertNoOpenFiles();
} }


private BlockBasedIndexPopulator<GenericKey,NativeIndexValue> instantiatePopulatorWithSomeData( TrappingMonitor monitor ) private BlockBasedIndexPopulator<GenericKey,NativeIndexValue> instantiatePopulatorWithSomeData( BlockStorage.Monitor monitor )
{ {
IndexProviderDescriptor providerDescriptor = new IndexProviderDescriptor( "test", "v1" ); IndexProviderDescriptor providerDescriptor = new IndexProviderDescriptor( "test", "v1" );
Config config = Config.defaults(); Config config = Config.defaults();
Expand Down

0 comments on commit 9d178d1

Please sign in to comment.