Commit a7fd35fc authored by Adin Schmahmann's avatar Adin Schmahmann Committed by Steven Allen

test: fix TestFindPeerQuery and TestFindPeerQueryMinimal to not try and...

test: fix TestFindPeerQuery and TestFindPeerQueryMinimal to not try and refresh routing tables for orphaned nodes
parent 7035c59c
......@@ -1414,8 +1414,10 @@ func testFindPeerQuery(t *testing.T,
waitForWellFormedTables(t, dhts, minRTRefreshThreshold, minRTRefreshThreshold, 5*time.Second)
for _, d := range dhts {
if err := <-d.RefreshRoutingTable(); err != nil {
t.Fatal(err)
if len(d.RoutingTable().ListPeers()) > 0 {
if err := <-d.RefreshRoutingTable(); err != nil {
t.Fatal(err)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment