You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2020/03/03 18:24:04 UTC
[maven-dependency-plugin] 12/13: Change name of pipeline.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch GITHUB_ACTIONS
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit a32bcf52adcbc27d6140695169dc4866ace490d4
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Mon Aug 12 23:45:05 2019 +0200
Change name of pipeline.
---
.github/workflows/maven.yml | 2 +-
.../maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index ec7adf1..1098734 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#
-name: Aapche Maven Dependency Plugin
+name: MDEP
on:
push:
branches:
diff --git a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
index eb3ae75..34c9f4b 100644
--- a/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
+++ b/src/test/java/org/apache/maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java
@@ -542,7 +542,7 @@ public class TestUnpackMojo
mojo.setSilent( false );
stubFactory.setCreateFiles( true );
Artifact artifact = stubFactory.getSnapshotArtifact();
- assertTrue( artifact.getFile().setLastModified( now - 20000 ) );
+ assertTrue( artifact.getFile().setLastModified( now - 10000 ) );
ArtifactItem item = new ArtifactItem( createArtifact( artifact ) );
@@ -555,8 +555,7 @@ public class TestUnpackMojo
// round down to the last second
long time = now;
time = time - ( time % 1000 );
- // go back 10 more seconds for linux
- time -= 10000;
+
// set to known value
assertTrue( unpackedFile.setLastModified( time ) );
// set source to be newer was 4s but test is brittle on MacOS if less than 5s