try to fix CI failures

This commit is contained in:
Olivier Lamy 2014-04-17 11:22:14 +10:00
parent 2132965397
commit 2b4fc98051
1 changed files with 6 additions and 0 deletions

View 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();