This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 69a7389 Try to improve test stability on macOS
69a7389 is described below
commit 69a7389c138ae439485a5aec7f631f1cb28e6360
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Sat Sep 11 00:09:55 2021 +0200
Try to improve test stability on macOS
---
.../maven/plugins/dependency/fromConfiguration/TestUnpackMojo.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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 79a96bf..7659029 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
@@ -553,8 +553,9 @@ public class TestUnpackMojo
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
- assertTrue( artifact.getFile().setLastModified( time + 5000 ) );
+ // set source to be newer about some seconds,
+ // especially on macOS it shouldn't be smaller than 8s in order to
mitigate flapping test
+ assertTrue( artifact.getFile().setLastModified( time + 8000 ) );
// manually set markerfile (must match getMarkerFile in
DefaultMarkerFileHandler)
File marker = new File( mojo.getMarkersDirectory(),
artifact.getId().replace( ':', '-' ) + ".marker" );