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>
This commit is contained in:
David Pursehouse 2017-01-27 17:08:09 +09:00 committed by Matthias Sohn
parent acc94c475a
commit 25b14084c9
1 changed files with 0 additions and 10 deletions

View File

@ -128,16 +128,6 @@ public void setUp() throws Exception {
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;