mirror of https://github.com/apache/archiva.git
cleanup bad content from previous builds: my bad !
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1233368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af18bdf380
commit
2d3d39db6a
|
@ -298,6 +298,12 @@ public abstract class AbstractArchivaRestTest
|
|||
managedRepository.setId( testRepoId );
|
||||
managedRepository.setName( "test repo" );
|
||||
|
||||
File badContent = new File( repoPath, "target" );
|
||||
if ( badContent.exists() )
|
||||
{
|
||||
FileUtils.deleteDirectory( badContent );
|
||||
}
|
||||
|
||||
managedRepository.setLocation( new File( repoPath ).getPath() );
|
||||
managedRepository.setIndexDirectory(
|
||||
System.getProperty( "java.io.tmpdir" ) + "/target/.index-" + Long.toString( new Date().getTime() ) );
|
||||
|
|
|
@ -114,8 +114,6 @@ public class ManagedRepositoriesServiceTest
|
|||
|
||||
ManagedRepositoriesService service = getManagedRepositoriesService( authorizationHeader );
|
||||
|
||||
RepositoriesService repositoriesService = getRepositoriesService( authorizationHeader );
|
||||
|
||||
ArchivaRepositoryStatistics archivaRepositoryStatistics = service.getManagedRepositoryStatistics( testRepoId );
|
||||
|
||||
assertNotNull( archivaRepositoryStatistics );
|
||||
|
|
Loading…
Reference in New Issue