Fixed proxy test.

This commit is contained in:
Simone Bordet 2013-07-25 17:20:17 +02:00
parent 3b18490ead
commit 06504f2c65
1 changed files with 34 additions and 25 deletions

View File

@ -67,10 +67,19 @@ public class ProxyFakeTunnelTest extends ProxyTunnellingTest
} }
protected void stopProxy() throws Exception protected void stopProxy() throws Exception
{
if (_proxySocket != null)
{ {
_proxySocket.close(); _proxySocket.close();
_proxyThread.interrupt(); _proxyThread.interrupt();
} }
}
@Override
public void testExternalProxy() throws Exception
{
// Do not execute this test, since it won't hit the fake proxy
}
static class FakeProxy extends Thread static class FakeProxy extends Thread
{ {