]> source.dussan.org Git - jgit.git/commit
RepositoryCacheTest: avoid to close already closed repository 11/89811/1
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 28 Jan 2017 20:19:55 +0000 (21:19 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 28 Jan 2017 20:19:55 +0000 (21:19 +0100)
commit53ad4373825f444bc011d046e0acd3dfe5eaeca7
treebef19ac4f7021dbba9a2c83df2dfbe2f6e05979a
parentac6353e9e5fbcf0c1a298990505674077ff09a22
RepositoryCacheTest: avoid to close already closed repository

The tearDown() of the superclass closed the repository once more which
led to a negative use count warning logged by Repository.close().

Change-Id: I331f85a540c68264a53456276c32f72b79113d61
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryCacheTest.java