Use non-default Tor ports for BridgeTest.

This commit is contained in:
akwizgran
2022-05-06 14:47:29 +01:00
parent d2f25f2ebe
commit 2bf490b973

View File

@@ -89,6 +89,9 @@ public class BridgeTest extends BrambleTestCase {
private final static long MEEK_TIMEOUT = MINUTES.toMillis(6);
private final static int UNREACHABLE_BRIDGES_ALLOWED = 6;
private final static int ATTEMPTS_PER_BRIDGE = 5;
// Use different ports from Briar Desktop to avoid conflicts
private final static int SOCKS_PORT = DEFAULT_SOCKS_PORT + 10;
private final static int CONTROL_PORT = DEFAULT_CONTROL_PORT + 10;
private final static Logger LOG = getLogger(BridgeTest.class.getName());
@@ -165,7 +168,7 @@ public class BridgeTest extends BrambleTestCase {
networkManager, locationUtils, eventBus, torSocketFactory,
backoffFactory, resourceProvider, bridgeProvider,
batteryManager, clock, crypto, torDir,
DEFAULT_SOCKS_PORT, DEFAULT_CONTROL_PORT);
SOCKS_PORT, CONTROL_PORT);
}
@After