aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-10-02 12:45:29 +0200
committerChristian Halstrick <christian.halstrick@sap.com>2012-10-02 12:46:09 +0200
commit046a497d7774193c019d53fecc64d0a4b2e7d929 (patch)
tree4ff1e7a0eeee5180e1f69932909d1660aaf01ce8 /org.eclipse.jgit.test
parent9fbe88aab181f25509bafc25dab5b199b411c34b (diff)
downloadjgit-046a497d7774193c019d53fecc64d0a4b2e7d929.tar.gz
jgit-046a497d7774193c019d53fecc64d0a4b2e7d929.zip
Fix unstable test
Add more time to a timestamp to safely go beyond the granularity of the timestamp resolution of the file system. The lowest resolution we know of is FAT with two second resolution. Then add some to make sure we are above the limit. Change-Id: I85c5b07dcdf2d80de41fe9b2354ccc888bad7f1e
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
index 20d62f5316..44f1a48c31 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java
@@ -321,7 +321,7 @@ public class CommitCommandTest extends RepositoryTestCase {
db.getIndexFile().setLastModified(indexTime - 5000);
write(file1, "content4");
- assertTrue(file1.setLastModified(file1.lastModified() + 1000));
+ assertTrue(file1.setLastModified(file1.lastModified() + 2500));
assertNotNull(git.commit().setMessage("edit file").setOnly("file1.txt")
.call());