Skip to content

Commit 857ff68

Browse files
committed
test_framework_bridge: get ip from container interface
1 parent d61c797 commit 857ff68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/warnet/test_framework_bridge.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def setup(self):
6161

6262
self.warnet = Warnet.from_network(self.options.network, self.options.backend)
6363
for i, tank in enumerate(self.warnet.tanks):
64-
ip = tank.ipv4
65-
self.log.info(f"Adding TestNode {i} from tank {tank.index} with IP {ip}")
64+
self.log.info(f"Adding TestNode {i} from tank {tank.index}")
65+
tank_ip = self.warnet.container_interface.get_tank_ipv4(tank.index)
6666
node = TestNode(
6767
i,
6868
pathlib.Path(), # datadir path
6969
chain=tank.bitcoin_network,
70-
rpchost=ip,
70+
rpchost=tank_ip,
7171
timewait=60,
7272
timeout_factor=self.options.timeout_factor,
7373
bitcoind=None,
@@ -76,7 +76,7 @@ def setup(self):
7676
coverage_dir=self.options.coveragedir,
7777
)
7878
node.rpc = get_rpc_proxy(
79-
f"http://{tank.rpc_user}:{tank.rpc_password}@{ip}:{tank.rpc_port}",
79+
f"http://{tank.rpc_user}:{tank.rpc_password}@{tank_ip}:{tank.rpc_port}",
8080
i,
8181
timeout=60,
8282
coveragedir=self.options.coveragedir,

0 commit comments

Comments
 (0)