From 1236ab480c5e50b8a592da1accf106b7fe1fc0a5 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 22 Feb 2022 16:10:52 +0100 Subject: [PATCH] fix: EnableHolePunching enabled by default This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. https://github.com/ipfs/go-ipfs/pull/8748 --- scripts/setup-libp2p-relay-daemon.js | 2 +- test/utils/circuit.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup-libp2p-relay-daemon.js b/scripts/setup-libp2p-relay-daemon.js index a91ac8a2..8ebbfe6d 100755 --- a/scripts/setup-libp2p-relay-daemon.js +++ b/scripts/setup-libp2p-relay-daemon.js @@ -81,7 +81,7 @@ async function getDownloadURL (version, platform, arch, distUrl) { } if (!data.platforms[platform].archs[arch]) { - throw new Error(`No binary available for arch '${arch}'`) + throw new Error(`No binary available for platform '${platform}' and arch '${arch}'`) } const link = data.platforms[platform].archs[arch].link diff --git a/test/utils/circuit.js b/test/utils/circuit.js index c09db76c..86d3fe9d 100644 --- a/test/utils/circuit.js +++ b/test/utils/circuit.js @@ -130,6 +130,7 @@ export function createGoRelay (addrs, factory) { Swarm: addrs }, Swarm: { + EnableHolePunching: false, // depends on Swarm.RelayClient.Enabled // go uses circuit v2 RelayClient: { Enabled: false