Browse Source

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>
tags/v1.1.0.201109011030-rc2
Robin Rosenberg 13 years ago
parent
commit
802f84650d

+ 9
- 0
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/GitConstructionTest.java View 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);

Loading…
Cancel
Save