Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2010-07-16 10:38:27 -0400
committerRobin Rosenberg2010-07-16 11:16:12 -0400
commitf6666c62d2e29f6e8277b175695f17e35ac53660 (patch)
tree5f49f9412239a553c7104bbdafe8f2dfaa8ba7dc /org.eclipse.egit.core.test
parent551b1d4c7c79d7ac661e00bf23caf2851858bf1a (diff)
downloadegit-f6666c62d2e29f6e8277b175695f17e35ac53660.tar.gz
egit-f6666c62d2e29f6e8277b175695f17e35ac53660.tar.xz
egit-f6666c62d2e29f6e8277b175695f17e35ac53660.zip
Fix PushOperationTest
This currently fails on file systems with low time stamp accuracy or a Java implemenration that does not return the subseconds part of the filestamp. Java on Linux exhibits this bug. See http://bugs.sun.com/view_bug.do?bug_id=6939260 Change-Id: If54da3e1209ca2ca6e11283b9c08d7b7504f7845 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com> Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Diffstat (limited to 'org.eclipse.egit.core.test')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/PushOperationTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/PushOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/PushOperationTest.java
index 48fa2d134..162e8002c 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/PushOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/PushOperationTest.java
@@ -146,6 +146,12 @@ public class PushOperationTest extends DualRepositoryTestCase {
files.add(newFile);
IFile[] fileArr = files.toArray(new IFile[files.size()]);
+ // TODO This should be removed once we replace GitIndex with DirCache
+ // The following wait is currently needed on file
+ // systems with low time stamp accuracy or a buggy
+ // java.io.File.lastModified.
+ Thread.sleep(1000);
+
TrackOperation trop = new TrackOperation(fileArr);
trop.execute(null);
CommitOperation cop = new CommitOperation(fileArr, files, files,

Back to the top