Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: random walk #104

Merged
merged 9 commits into from
Apr 22, 2019
2 changes: 1 addition & 1 deletion test/kad-dht.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function connect (a, b, callback) {

function bootstrap (dhts) {
dhts.forEach((dht) => {
dht.randomWalk._walk(1, 1000, () => {})
dht.randomWalk._walk(1, 10000, () => {})
Copy link
Contributor Author

@jacobheun jacobheun Apr 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that timeout is actually being passed to findPeer I bumped this to 10seconds so the random walk doesn't get killed after 1s. This was causing test failures because routing tables weren't doing enough connecting when it was depending on the walk.

})
}

Expand Down