This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.11 by this push:
new 07fb6c285 Add sleep to ensure that the `getLastModifiedTime` is
different (#2985)
07fb6c285 is described below
commit 07fb6c2857edfce0e2a1e9e1b423d1bd4d12116a
Author: Fokko Driesprong <[email protected]>
AuthorDate: Thu Jun 27 16:54:44 2024 +0200
Add sleep to ensure that the `getLastModifiedTime` is different (#2985)
---
.../src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
b/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
index 315dc3953..5c65ad0d4 100644
---
a/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
+++
b/lang/java/maven-plugin/src/test/java/org/apache/avro/mojo/TestIDLProtocolMojo.java
@@ -111,6 +111,7 @@ public class TestIDLProtocolMojo extends
AbstractAvroMojoTest {
final Path idlUserFilePath = outputDirPath.resolve("IdlUser.java");
final FileTime idlUserModificationTime =
Files.getLastModifiedTime(idlUserFilePath);
+ Thread.sleep(1000);
mojo.execute();
// Asserting contents is done in previous tests so just assert existence.