The pack files were left open after the test ended, which meant we could not delete them automatically when the test was over. Make sure we close the repositories (and thus their underlying packs) before the tear down finishes. Bug: 310367 Change-Id: I4d2703efa4b2e0c347ea4f4475777899cf71073e Signed-off-by: Shawn O. Pearce <spearce@spearce.org>tags/v0.8.1
@@ -114,6 +114,15 @@ public class ReceivePackRefFilterTest extends LocalDiskRepositoryTestCase { | |||
d.update(R_PRIVATE, P); | |||
} | |||
@Override | |||
protected void tearDown() throws Exception { | |||
if (src != null) | |||
src.close(); | |||
if (dst != null) | |||
dst.close(); | |||
super.tearDown(); | |||
} | |||
public void testFilterHidesPrivate() throws Exception { | |||
Map<String, Ref> refs; | |||
TransportLocal t = new TransportLocal(src, uriOf(dst)) { |