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 66435b225e7885f44b25207e025469f6d5237107 Author: Karl Heinz Marbaise <khmarba...@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 c9ba0eb..28988ce 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