]> source.dussan.org Git - jgit.git/commit
Fix RacyGitTests#testRacyGitDetection 64/148764/1
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 18 Jun 2019 09:32:59 +0000 (11:32 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 3 Sep 2019 08:37:30 +0000 (10:37 +0200)
commit1de117780036b14db025ee3a5fa4ebd285a826cf
tree787e3a58d6a7894e50cbf6788f48da21415af15a
parent3712b0a3b1b428ec446d83f13e544f605d26220e
Fix RacyGitTests#testRacyGitDetection

This test case assumed file system timestamp resolution of 1 second. On
filesystems with a finer resolution this test fails since the index
entry is only smudged if the file index entry's lastModified and the
lastModified of the git index itself are within the same filesystem
timer tick. Fix this by ensuring that these timestamps are identical
which should work for any filesystem timer resolution.

Bug: 548188
Change-Id: Id84d59e1cfeb48fa008f8f27f2f892c4f73985de
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
(cherry picked from commit 1159f9dd7c80a53c2509cd75d997a6afed37f9a6)
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RacyGitTests.java