]> source.dussan.org Git - jgit.git/commitdiff
Fix GitConstructionTest teardown 78/3578/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 May 2011 20:39:04 +0000 (22:39 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 May 2011 20:39:04 +0000 (22:39 +0200)
The teardown faile on Windows because the repos were not closed.

Change-Id: I16cf5645558680029682f898386b061796948237
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java

index 0e0b18732b024ebc94661eea6ed2d3d358e8ddbd..8aacbb063ca988b24f0ca8736fdd8e44dae49b91 100644 (file)
@@ -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);