Skip to content

Commit

Permalink
Remove test testing for old behaviour
Browse files Browse the repository at this point in the history
It is no longer the case that a half-applied constraint should be removed during recovery.
  • Loading branch information
ragadeeshu committed Jun 29, 2017
1 parent 397e1a3 commit a6499c8
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,6 @@ public void rollBackIndexRuleShouldNotBeCommitted() throws Exception
commit();
}

@Test
public void shouldRemoveAConstraintIndexWithoutOwnerInRecovery() throws Exception
{
// given
PropertyAccessor propertyAccessor = mock( PropertyAccessor.class );
ConstraintIndexCreator creator = new ConstraintIndexCreator( () -> kernel, indexingService, propertyAccessor, false );

creator.createConstraintIndex( descriptor );

// when
restartDb();

// then
ReadOperations readOperations = readOperationsInNewTransaction();
assertEquals( emptySet(), asSet( readOperations.indexesGetForLabel( labelId ) ) );
commit();
}

@Test
public void shouldDisallowDroppingIndexThatDoesNotExist() throws Exception
{
Expand Down

0 comments on commit a6499c8

Please sign in to comment.