Skip to content

Commit

Permalink
fix: content routing
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Mar 29, 2019
1 parent 6d038aa commit 280fdfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dirty-chai": "^2.0.1",
"go-libp2p-dep": "^6.0.30",
"libp2p-daemon": "~0.2.0",
"libp2p-daemon-client": "~0.1.0",
"libp2p-daemon-client": "~0.1.2",
"multiaddr": "^6.0.6",
"rimraf": "^2.6.3"
},
Expand Down
3 changes: 3 additions & 0 deletions test/dht/peer-routing/js2go.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ describe('dht.peerRouting', () => {
// connect 0 => 2
await daemons[0].client.connect(identify2.peerId, identify2.addrs)

// daemons[0] will take some time to have the peers in the routing table
await new Promise(resolve => setTimeout(resolve, 1000))

// peer 1 find peer 2
const peerInfo = await daemons[1].client.dht.findPeer(identify2.peerId)

Expand Down
3 changes: 3 additions & 0 deletions test/dht/peer-routing/js2js.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ describe('dht.peerRouting', () => {
// connect 0 => 2
await daemons[0].client.connect(identify2.peerId, identify2.addrs)

// daemons[0] will take some time to have the peers in the routing table
await new Promise(resolve => setTimeout(resolve, 1000))

// peer 1 find peer 2
const peerInfo = await daemons[1].client.dht.findPeer(identify2.peerId)

Expand Down

0 comments on commit 280fdfb

Please sign in to comment.