Add integration test to check for thread leaks in sandboxed Daemon tests

Change-Id: Iaebf022608a56618f06550568ac283f0c0ab7f0e
This commit is contained in:
Luca Milanesio
2017-04-03 17:25:38 +01:00
committed by David Pursehouse
parent b5584d18f6
commit 5b42a126ef
2 changed files with 39 additions and 1 deletions

View File

@@ -500,7 +500,7 @@ public abstract class AbstractDaemonTest {
return GitUtil.cloneProject(p, inProcessProtocol.register(ctx, repo).toString());
}
private void afterTest() throws Exception {
protected void afterTest() throws Exception {
Transport.unregister(inProcessProtocol);
for (Repository repo : toClose) {
repo.close();