I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1be569db authored by zzz's avatar zzz
Browse files

Test: Fix broken junit test build

parent 63e75ed3
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ public class BuildMessageTestStandalone extends TestCase { ...@@ -162,7 +162,7 @@ public class BuildMessageTestStandalone extends TestCase {
_privKeys[i] = (PrivateKey)kp[1]; _privKeys[i] = (PrivateKey)kp[1];
} }
TunnelCreatorConfig cfg = new TunnelCreatorConfig(null, _peers.length, false); TunnelCreatorConfig cfg = new TCConfig(null, _peers.length, false);
long now = ctx.clock().now(); long now = ctx.clock().now();
// peers[] is ordered endpoint first, but cfg.getPeer() is ordered gateway first // peers[] is ordered endpoint first, but cfg.getPeer() is ordered gateway first
for (int i = 0; i < _peers.length; i++) { for (int i = 0; i < _peers.length; i++) {
......
...@@ -57,7 +57,7 @@ public class OutboundTest extends TestCase{ ...@@ -57,7 +57,7 @@ public class OutboundTest extends TestCase{
_context.random().nextBytes(tunnelIds[i]); _context.random().nextBytes(tunnelIds[i]);
} }
TunnelCreatorConfig config = new TunnelCreatorConfig(_context, numHops, false); TunnelCreatorConfig config = new TCConfig(_context, numHops, false);
for (int i = 0; i < numHops; i++) { for (int i = 0; i < numHops; i++) {
config.setPeer(i, peers[i]); config.setPeer(i, peers[i]);
HopConfig cfg = config.getConfig(i); HopConfig cfg = config.getConfig(i);
......
...@@ -42,7 +42,7 @@ public abstract class RouterITBase { ...@@ -42,7 +42,7 @@ public abstract class RouterITBase {
_context.random().nextBytes(tunnelIds[i]); _context.random().nextBytes(tunnelIds[i]);
} }
TunnelCreatorConfig config = new TunnelCreatorConfig(_context, numHops, false); TunnelCreatorConfig config = new TCConfig(_context, numHops, false);
for (int i = 0; i < numHops; i++) { for (int i = 0; i < numHops; i++) {
config.setPeer(i, peers[i]); config.setPeer(i, peers[i]);
HopConfig cfg = config.getConfig(i); HopConfig cfg = config.getConfig(i);
......
package net.i2p.router.tunnel;
import net.i2p.router.RouterContext;
/**
* Since TunnelCreatorConfig is now abstract
* @since 0.9.42
*/
public class TCConfig extends TunnelCreatorConfig {
public TCConfig(RouterContext ctx, int length, boolean isInbound) {
super(ctx, length, isInbound);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment