aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2011-05-30 22:39:04 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2011-05-30 22:39:04 +0200
commit802f84650d1930cfdd44f87ba66f32dde722124d (patch)
tree3dd1c547afc21785b96adce15b57db1cd1e65461 /org.eclipse.jgit.test/tst
parent03a6f572b5968dc8f77b5c85e3097448df6ea27e (diff)
downloadjgit-802f84650d1930cfdd44f87ba66f32dde722124d.tar.gz
jgit-802f84650d1930cfdd44f87ba66f32dde722124d.zip
Fix GitConstructionTest teardown
The teardown faile on Windows because the repos were not closed. Change-Id: I16cf5645558680029682f898386b061796948237 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java
index 0e0b18732b..8aacbb063c 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java
@@ -51,6 +51,7 @@ import org.eclipse.jgit.api.ListBranchCommand.ListMode;
import org.eclipse.jgit.errors.RepositoryNotFoundException;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryTestCase;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@@ -73,6 +74,14 @@ public class GitConstructionTest extends RepositoryTestCase {
.getRepository();
}
+ @Override
+ @After
+ public void tearDown() throws Exception {
+ db.close();
+ bareRepo.close();
+ super.tearDown();
+ }
+
@Test
public void testWrap() {
Git git = Git.wrap(db);