JoergBudi opened a new pull request, #760:
URL: https://github.com/apache/commons-io/pull/760

   … resolution is only 1s. Adding TestUtils.sleepTillNextFullSecond()
   
   @garydgregory 
   followup to PR https://github.com/apache/commons-io/pull/757 . The test was 
unstable, as the java.nio.file.Files.getLastModifiedTime() on macosx-13-java8 
only has a time resolution of 1s (and it is used in 
Tailer.TailablePath.lastModifiedFIleTIme). 
   
   Note: it seems, that java.io.File.lastModified() has  millisecond resolution 
on that platform, but it doesn't make sense to change the real code for 
everyone because of an odd platform.
   
   So tests are now adapated, that the file date is updated after the curent 
second has passed to comply with posix standard Additionaly the waittime is 
shortened a little by polling instead of waiting max time.
   
   see 
https://github.com/JoergBudi/commons-io/actions/runs/16092357707/job/45410764092
 for passed test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to