Reduce noise in the bootstrap tests

This commit is contained in:
Matt Joiner 2019-01-31 13:33:03 +11:00
parent 0998477db1
commit b598d08a51

View File

@ -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")
} }