Close Repository to fix tests failing on Windows
Fix tests failing on Windows because Repository instance is created but not closed on tear down. Change-Id: I72488ba5efeec95110926b1fbd56b7d96fca0d37 Signed-off-by: Nail Samatov <sanail@yandex.ru> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
f802f06e7f
commit
5dcc46591a
|
@ -46,6 +46,7 @@
|
|||
import org.eclipse.jgit.treewalk.FileTreeIterator;
|
||||
import org.eclipse.jgit.util.FS;
|
||||
import org.eclipse.jgit.util.FileUtils;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
|
||||
/**
|
||||
|
@ -187,6 +188,13 @@ public void setUp() throws Exception {
|
|||
trash = db.getWorkTree();
|
||||
}
|
||||
|
||||
@Override
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
db.close();
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Represent the state of the index in one String. This representation is
|
||||
* useful when writing tests which do assertions on the state of the index.
|
||||
|
|
Loading…
Reference in New Issue