Skip to content

Commit

Permalink
test: fix ipfs dht command
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Apr 3, 2024
1 parent 72d4c14 commit 962a203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func init() {
BOOTSTRAP_PEER_ADDR = call("bash", "-c", "ipfs bootstrap list | head -n 1")
// ipfs name resolve /ipns/en.wikipedia-on-ipfs.org => /ipfs/CID, we remove the /ipfs/ prefix
WIKIPEDIA_CID = call("ipfs", "name", "resolve", "/ipns/en.wikipedia-on-ipfs.org")[6:]
WIKIPEDIA_PEER_ID = call("bash", "-c", fmt.Sprintf("ipfs dht findprovs %s | tail -n 1", WIKIPEDIA_CID))
WIKIPEDIA_PEER_ID = call("bash", "-c", fmt.Sprintf("ipfs routing findprovs %s | tail -n 1", WIKIPEDIA_CID))
WIKIPEDIA_PEER_ADDR = fmt.Sprintf("/p2p/%s", WIKIPEDIA_PEER_ID)
}

Expand Down

0 comments on commit 962a203

Please sign in to comment.