George Gastaldi created FORGE-1589:
--------------------------------------
Summary: TouchCommandTest fails sporadically
Key: FORGE-1589
URL:
https://issues.jboss.org/browse/FORGE-1589
Project: Forge
Issue Type: Quality Risk
Components: Builtin Plugins
Affects Versions: 2.0.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 2.0.1.Final
As stated in the {{java.io.File.setLastModified}} javadoc:
{quote}
All platforms support file-modification times to the nearest second, but some provide more
precision. The argument will be truncated to fit the supported precision. If the operation
succeeds and no intervening operations on the file take place, then the next invocation of
the lastModified method will return the (possibly truncated) time argument that was passed
to this method.
{quote}
The error is probably caused because the test is not waiting for at least 1 second to
change the modifed date.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira