]> source.dussan.org Git - archiva.git/commitdiff
try to fix CI failures
authorOlivier Lamy <olamy@apache.org>
Thu, 17 Apr 2014 01:22:14 +0000 (11:22 +1000)
committerOlivier Lamy <olamy@apache.org>
Thu, 17 Apr 2014 01:22:14 +0000 (11:22 +1000)
archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/remotedownload/DownloadMergedIndexTest.java

index d338de5f3a315656a1d743cee54dde3f41afe8db..3a89d0e65ad2a11a9c3a40b56d7f4f1b64f95b55 100644 (file)
@@ -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();