mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-05-23 11:11:21 +00:00
Reduce noise in the bootstrap tests
This commit is contained in:
parent
0998477db1
commit
b598d08a51
@ -570,7 +570,7 @@ func waitForWellFormedTables(t *testing.T, dhts []*IpfsDHT, minPeers, avgPeers i
|
|||||||
rtlen := dht.routingTable.Size()
|
rtlen := dht.routingTable.Size()
|
||||||
totalPeers += rtlen
|
totalPeers += rtlen
|
||||||
if minPeers > 0 && rtlen < minPeers {
|
if minPeers > 0 && rtlen < minPeers {
|
||||||
t.Logf("routing table for %s only has %d peers (should have >%d)", dht.self, rtlen, minPeers)
|
//t.Logf("routing table for %s only has %d peers (should have >%d)", dht.self, rtlen, minPeers)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -608,7 +608,6 @@ func printRoutingTables(dhts []*IpfsDHT) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestBootstrap(t *testing.T) {
|
func TestBootstrap(t *testing.T) {
|
||||||
// t.Skip("skipping test to debug another")
|
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.SkipNow()
|
t.SkipNow()
|
||||||
}
|
}
|
||||||
@ -659,7 +658,6 @@ func TestBootstrap(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestPeriodicBootstrap(t *testing.T) {
|
func TestPeriodicBootstrap(t *testing.T) {
|
||||||
// t.Skip("skipping test to debug another")
|
|
||||||
if ci.IsRunning() {
|
if ci.IsRunning() {
|
||||||
t.Skip("skipping on CI. highly timing dependent")
|
t.Skip("skipping on CI. highly timing dependent")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user