From: Olivier Lamy Date: Thu, 17 Apr 2014 01:22:14 +0000 (+1000) Subject: try to fix CI failures X-Git-Tag: archiva-2.1.0~80 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b4fc980517bbb44c5f2edf1c2f2f0a554ddbee4;p=archiva.git try to fix CI failures --- 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();