random failing org.eclipse.core.tests.resources.regression.IResourceTest testCopy_1GA6QJP
Closed this issue · 4 comments
2.0 expected:<1649823792147> but was:<1649823792000>
junit.framework.AssertionFailedError: 2.0 expected:<1649823792147> but was:<1649823792000>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:159)
at junit.framework.TestCase.assertEquals(TestCase.java:302)
at org.eclipse.core.tests.resources.regression.IResourceTest.testCopy_1GA6QJP(IResourceTest.java:271)
Jörg, this is known Mac OS limitation, not caused by any recent changes. There is an old bugzilla.
The test is wrong. It's well documented in java.io.File.lastModified() that some OSes only provide Second accuracy.