Skip to content

Commit

Permalink
fix: reacher unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Oct 13, 2021
1 parent 0d79c6e commit 94e7643
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/p2p/libp2p/internal/reacher/reacher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ func TestPingSuccess(t *testing.T) {

r.Connected(overlay, nil)

time.Sleep(time.Millisecond * 50) // wait for reachable func to be called

select {
case <-time.After(time.Second):
t.Fatalf("test time out")
Expand Down
1 change: 0 additions & 1 deletion pkg/topology/kademlia/kademlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ func New(
pruneFunc: o.PruneFunc,
pinger: pinger,
staticPeer: isStaticPeer(o.StaticNodes),
blocker: blocker.New(p2p, flagTimeout, blockDuration, blockWorkerWakup, logger),
peerFilter: o.ReachabilityFunc,
}

Expand Down

0 comments on commit 94e7643

Please sign in to comment.