avoid jackrabbit failure on deleting a test repo

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1355375 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-06-29 13:29:57 +00:00
parent d7026bf9b4
commit e3885c59da
1 changed files with 14 additions and 4 deletions

View File

@ -318,8 +318,7 @@ public class RepositoriesServiceTest
} }
finally finally
{ {
getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(), cleanQuietlyRepo( managedRepository.getId() );
true );
} }
} }
@ -336,8 +335,19 @@ public class RepositoriesServiceTest
} }
finally finally
{ {
getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(), cleanQuietlyRepo( managedRepository.getId() );
true ); }
}
protected void cleanQuietlyRepo( String id )
{
try
{
getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( id, true );
}
catch ( Exception e )
{
log.info( "ignore issue deleting test repo: {}", e.getMessage() );
} }
} }