aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ant.test/src/org/eclipse
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-07-10 16:22:15 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-07-19 14:45:55 +0200
commiteda2e95fa8748813cbcfc7b7fbedefb002999cfa (patch)
tree185c8c939206a25dbad82d41ec4a1f60ab6b6d14 /org.eclipse.jgit.ant.test/src/org/eclipse
parent93144f1438b58264b9fe0dfed195407bc9c0ab1b (diff)
downloadjgit-eda2e95fa8748813cbcfc7b7fbedefb002999cfa.tar.gz
jgit-eda2e95fa8748813cbcfc7b7fbedefb002999cfa.zip
Measure filesystem timestamp resolution already in test setup
This helps to avoid some time critical tests can't prepare the test fixture intended since measuring timestamp resolution takes time. Change-Id: Ib34023e682a106070ca97e98ef16789a4dfb97b4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.ant.test/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java b/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
index 3ce0663762..1d7187a312 100644
--- a/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
+++ b/org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java
@@ -65,12 +65,13 @@ public class GitCloneTaskTest extends LocalDiskRepositoryTestCase {
@Before
public void before() throws IOException {
+ dest = createTempFile();
+ FS.getFsTimerResolution(dest.toPath().getParent());
project = new Project();
project.init();
enableLogging();
project.addTaskDefinition("git-clone", GitCloneTask.class);
task = (GitCloneTask) project.createTask("git-clone");
- dest = createTempFile();
task.setDest(dest);
}