Skip to content

Commit

Permalink
fix(test): give find peer query tests stable routing tables
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Mar 20, 2020
1 parent dd49e78 commit fe4f7b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,10 @@ func testFindPeerQuery(t *testing.T,
connect(t, ctx, guy, others[i])
}

for _, d := range dhts {
d.RefreshRoutingTable()
}

var reachableIds []peer.ID
for i, d := range dhts {
lp := len(d.host.Network().Peers())
Expand Down

0 comments on commit fe4f7b0

Please sign in to comment.