swarm/network: Add comment for WaitTillHealthy omit

This commit is contained in:
lash 2018-11-14 13:37:03 +01:00
parent aef2c87b9f
commit 5d75d81f2c
2 changed files with 3 additions and 1 deletions

View file

@ -33,6 +33,7 @@ var BucketKeyKademlia BucketKey = "kademlia"
// WaitTillHealthy is blocking until the health of all kademlias is true.
// If error is not nil, a map of kademlia that was found not healthy is returned.
// TODO: Check correctness since change in kademlia depth calculation logic
func (s *Simulation) WaitTillHealthy(ctx context.Context, kadMinProxSize int) (ill map[enode.ID]*network.Kademlia, err error) {
// Prepare PeerPot map for checking Kademlia health
var ppmap map[string]*network.PeerPot

View file

@ -28,7 +28,8 @@ import (
)
func TestWaitTillHealthy(t *testing.T) {
t.Skip("flaky, flaky")
t.Skip("temporarily disabled as simuations.WaitTillHealthy cannot be trusted")
sim := New(map[string]ServiceFunc{
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
addr := network.NewAddr(ctx.Config.Node())