Skip to content

Commit

Permalink
Updates test w/ regards to expected exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint committed Apr 16, 2018
1 parent 5442de5 commit 0179eb5
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.neo4j.values.storable.Values;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

public class IndexPopulationTest
{
Expand All @@ -63,17 +64,10 @@ public void mustFlipToFailedIfFailureToApplyLastBatchWhileFlipping() throws Exce
multipleIndexPopulator.indexAllNodes().run();

// when
try
{
indexPopulation.flip();
}
catch ( ExceptionDuringFlipKernelException e )
{
// good
}
indexPopulation.flip();

// then
assertTrue( "flipper should have flipped to failing proxy", flipper.getState() == InternalIndexState.FAILED );
assertTrue( "flipper should have flipped to failing proxy", flipper.getState() == InternalIndexState.FAILED );
}

private OnlineIndexProxy onlineIndexProxy( IndexStoreView storeView )
Expand Down

0 comments on commit 0179eb5

Please sign in to comment.