]> source.dussan.org Git - jgit.git/commit
ReceivePackAdvertiseRefsHookTest: Don't close repositories in teardown 68/89668/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 27 Jan 2017 08:08:09 +0000 (17:08 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 28 Jan 2017 16:46:28 +0000 (17:46 +0100)
commit25b14084c9e0ff0cc9332c49feb2aac01cab6400
treef40be3f307603252422d9353bbf541e2e909ce03
parentacc94c475a4d2635584798d43a3e47a81b2b2751
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>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java