From e3885c59da2e4748e2ba494f3901902be0470067 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 29 Jun 2012 13:29:57 +0000 Subject: [PATCH] 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 --- .../rest/services/RepositoriesServiceTest.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java index 96ce88b09..80ecdfcd6 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java @@ -318,8 +318,7 @@ public class RepositoriesServiceTest } finally { - getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(), - true ); + cleanQuietlyRepo( managedRepository.getId() ); } } @@ -336,8 +335,19 @@ public class RepositoriesServiceTest } finally { - getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( managedRepository.getId(), - true ); + cleanQuietlyRepo( managedRepository.getId() ); + } + } + + protected void cleanQuietlyRepo( String id ) + { + try + { + getManagedRepositoriesService( authorizationHeader ).deleteManagedRepository( id, true ); + } + catch ( Exception e ) + { + log.info( "ignore issue deleting test repo: {}", e.getMessage() ); } } -- 2.39.5