mirror of https://github.com/apache/archiva.git
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:
parent
d7026bf9b4
commit
e3885c59da
|
@ -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() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue