ethereum / ssv

The repository has moved to https://github.com/bloxapp/ssv
https://github.com/bloxapp/ssv
24 stars 12 forks source link

Clear timeouts in libp2p tests #79

Open amirylm opened 3 years ago

amirylm commented 3 years ago

Libp2p peers in tests (e.g. network/p2p/p2p_test.go) are using timeouts to get over peer discovery which is async. A better approach is to wait for connections and then act accordingly (combined with a timeout in miliseconds so libp2p will manage to setup stream handlers)