ssv
ssv copied to clipboard
Clear timeouts in libp2p tests
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)