You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "JoergBudi (via GitHub)" <gi...@apache.org> on 2025/07/05 22:29:13 UTC
[PR] [io-279] fixing macos-x-13-java8 unstable test due to posix file time… [commons-io]
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [io-279] fixing macos-x-13-java8 unstable test due to posix file time… [commons-io]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #760:
URL: https://github.com/apache/commons-io/pull/760
--
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [IO-279] Fix macos-x-13-java8 unstable test due to posix file time [commons-io]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #760:
URL: https://github.com/apache/commons-io/pull/760#issuecomment-3040506440
@JoergBudi
Thank you for the follow-up PR 👍
--
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org