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
This commit is contained in:
Robin Rosenberg 2012-10-02 12:45:29 +02:00 committed by Christian Halstrick
parent 9fbe88aab1
commit 046a497d77
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ public void commitUpdatesSmudgedEntries() throws Exception {
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());