From cd1424c09fba9b51fc9c2c05ae8b7c28a72d71a1 Mon Sep 17 00:00:00 2001 From: vladopajic Date: Wed, 14 May 2025 17:49:51 +0200 Subject: [PATCH] chore(interop): use the same redis dependency (#1364) --- tests/hole-punching-interop/Dockerfile | 2 +- tests/hole-punching-interop/hole_punching.nim | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/hole-punching-interop/Dockerfile b/tests/hole-punching-interop/Dockerfile index e03d0e29e..da4ebaff3 100644 --- a/tests/hole-punching-interop/Dockerfile +++ b/tests/hole-punching-interop/Dockerfile @@ -7,7 +7,7 @@ COPY .pinned libp2p.nimble nim-libp2p/ RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y libssl-dev -RUN cd nim-libp2p && nimble install_pinned && nimble install redis -y +RUN cd nim-libp2p && nimble install_pinned && nimble install "redis@#b341fe240dbf11c544011dd0e033d3c3acca56af" -y COPY . nim-libp2p/ diff --git a/tests/hole-punching-interop/hole_punching.nim b/tests/hole-punching-interop/hole_punching.nim index 9ee661403..847cb1426 100644 --- a/tests/hole-punching-interop/hole_punching.nim +++ b/tests/hole-punching-interop/hole_punching.nim @@ -18,6 +18,9 @@ import import ../stubs/autonatclientstub import ../errorhelpers +logScope: + topics = "hp interop node" + proc createSwitch(r: Relay = nil, hpService: Service = nil): Switch = let rng = newRng() var builder = SwitchBuilder @@ -67,6 +70,8 @@ proc main() {.async.} = except Exception as e: raise newException(CatchableError, e.msg) + debug "All relay addresses", relayAddr + # This is necessary to make the autonat service work. It will ask this peer for our reachability which the autonat # client stub will answer NotReachable. await switch.connect(auxSwitch.peerInfo.peerId, auxSwitch.peerInfo.addrs)