Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit 0538806

Browse files
committed
fix TestConnectednessCorrect
we might get more connections because simultaneous dials can succeed and we have both TCP and QUIC addrs by default
1 parent b67b736 commit 0538806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swarm_net_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ func TestConnectednessCorrect(t *testing.T) {
5757
t.Fatal("expected net 0 to have two peers")
5858
}
5959

60-
if len(nets[2].Conns()) != 2 {
61-
t.Fatal("expected net 2 to have two conns")
60+
if len(nets[2].Peers()) != 2 {
61+
t.Fatal("expected net 2 to have two peers")
6262
}
6363

6464
if len(nets[1].ConnsToPeer(nets[3].LocalPeer())) != 0 {

0 commit comments

Comments
 (0)