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

Commit

Permalink
fix TestConnectednessCorrect
Browse files Browse the repository at this point in the history
we might get more connections because simultaneous dials can succeed
and we have both TCP and QUIC addrs by default
  • Loading branch information
vyzo committed Mar 31, 2021
1 parent b67b736 commit 0538806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swarm_net_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func TestConnectednessCorrect(t *testing.T) {
t.Fatal("expected net 0 to have two peers")
}

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

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

0 comments on commit 0538806

Please sign in to comment.