diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-01-27 17:08:09 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-01-28 17:46:28 +0100 |
commit | 25b14084c9e0ff0cc9332c49feb2aac01cab6400 (patch) | |
tree | f40be3f307603252422d9353bbf541e2e909ce03 /org.eclipse.jgit.test | |
parent | acc94c475a4d2635584798d43a3e47a81b2b2751 (diff) | |
download | jgit-25b14084c9e0ff0cc9332c49feb2aac01cab6400.tar.gz jgit-25b14084c9e0ff0cc9332c49feb2aac01cab6400.zip |
ReceivePackAdvertiseRefsHookTest: Don't close repositories in teardown
The repositories get added to the "toClose" set by createBareRepository,
and are then closed in the superclass's tearDown method.
Explicitly closing them in this test class's teardown causes the use
count to go negative when subsequently closed again by the superclass.
Change-Id: Idcbb16b4cf4bf0640d7e4ac15d1926d8a27c1251
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java index 94bc383db7..d66ace53e8 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java @@ -128,16 +128,6 @@ public class ReceivePackAdvertiseRefsHookTest extends LocalDiskRepositoryTestCas d.update(R_PRIVATE, P); } - @Override - @After - public void tearDown() throws Exception { - if (src != null) - src.close(); - if (dst != null) - dst.close(); - super.tearDown(); - } - @Test public void testFilterHidesPrivate() throws Exception { Map<String, Ref> refs; |