mirror of https://github.com/apache/archiva.git
Fixed a unit test bug that would vary the timestamp of a file on a different machine.
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@381999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d1880e028
commit
43b79ffe9d
|
@ -76,6 +76,7 @@ public class EclipseRepositoryIndexTest
|
||||||
|
|
||||||
Artifact artifact = getArtifact( "org.apache.maven", "maven-artifact", "2.0.1" );
|
Artifact artifact = getArtifact( "org.apache.maven", "maven-artifact", "2.0.1" );
|
||||||
artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) );
|
artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) );
|
||||||
|
artifact.getFile().setLastModified( 1137381114096L );
|
||||||
indexer.indexArtifact( artifact );
|
indexer.indexArtifact( artifact );
|
||||||
indexer.optimize();
|
indexer.optimize();
|
||||||
indexer.close();
|
indexer.close();
|
||||||
|
|
Loading…
Reference in New Issue