Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit bda96fc

Browse files
authoredApr 19, 2022
fix: when hole punching is enabled by default (#443)
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. ipfs/kubo#8748
1 parent 3e07e24 commit bda96fc

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed
 

‎package-lock.json

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
"wherearewe": "^1.0.0"
199199
},
200200
"devDependencies": {
201-
"go-ipfs": "^0.11.0",
201+
"go-ipfs": "^0.12.2",
202202
"ipfs": "^0.61.0",
203203
"ipfs-http-client": "^55.0.0"
204204
},

‎scripts/setup-libp2p-relay-daemon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function getDownloadURL (version, platform, arch, distUrl) {
8181
}
8282

8383
if (!data.platforms[platform].archs[arch]) {
84-
throw new Error(`No binary available for arch '${arch}'`)
84+
throw new Error(`No binary available for platform '${platform}' and arch '${arch}'`)
8585
}
8686

8787
const link = data.platforms[platform].archs[arch].link

‎test/utils/circuit.js

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export async function createGo (addrs, factory, relay) {
9494
Swarm: addrs
9595
},
9696
Swarm: {
97+
EnableHolePunching: false,
9798
// go uses circuit v2
9899
RelayClient: {
99100
Enabled: true,
@@ -130,6 +131,7 @@ export function createGoRelay (addrs, factory) {
130131
Swarm: addrs
131132
},
132133
Swarm: {
134+
EnableHolePunching: false,
133135
// go uses circuit v2
134136
RelayClient: {
135137
Enabled: false

0 commit comments

Comments
 (0)
This repository has been archived.