You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by fo...@apache.org on 2024/06/27 13:08:50 UTC

(avro) 01/01: Add sleep to make sure that the `getLastModifiedTime` is different

This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch fd-zzz
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 70800ad735155f11aa1ce35807d9943e511d5228
Author: Fokko Driesprong <fo...@tabular.io>
AuthorDate: Thu Jun 27 15:08:43 2024 +0200

    Add sleep to make sure that the `getLastModifiedTime` is different
---
 .../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.