We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfa638e commit 63118f1Copy full SHA for 63118f1
1 file changed
p2p/client_test.go
@@ -4,7 +4,6 @@ import (
4
"crypto/rand"
5
"strings"
6
"testing"
7
- "time"
8
9
"github.com/libp2p/go-libp2p-core/crypto"
10
"github.com/libp2p/go-libp2p-core/peer"
@@ -88,8 +87,9 @@ func TestBootstrapping(t *testing.T) {
88
87
err = client3.Start()
89
assert.NoError(err)
90
91
- // TODO(tzdybal): need a better way to check that connections are fine
92
- time.Sleep(1 * time.Second)
+ assert.Equal(2, len(client1.host.Network().Peers()))
+ assert.Equal(2, len(client2.host.Network().Peers()))
+ assert.Equal(2, len(client3.host.Network().Peers()))
93
}
94
95
func TestGetMultiaddr(t *testing.T) {
0 commit comments