From 2b4fc980517bbb44c5f2edf1c2f2f0a554ddbee4 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 17 Apr 2014 11:22:14 +1000 Subject: [PATCH] try to fix CI failures --- .../archiva/remotedownload/DownloadMergedIndexTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadMergedIndexTest.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadMergedIndexTest.java index d338de5f3..3a89d0e65 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadMergedIndexTest.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadMergedIndexTest.java @@ -165,6 +165,12 @@ public class DownloadMergedIndexTest remoteRepository.setUserName( RedbackRoleConstants.ADMINISTRATOR_ACCOUNT_NAME ); remoteRepository.setPassword( FakeCreateAdminService.ADMIN_TEST_PWD ); + + if (getRemoteRepositoriesService().getRemoteRepository( remoteRepository.getId() ) != null) + { + getRemoteRepositoriesService().deleteRemoteRepository( remoteRepository.getId() ); + } + getRemoteRepositoriesService().addRemoteRepository( remoteRepository ); ProxyConnectorService proxyConnectorService = getProxyConnectorService(); -- 2.39.5