Skip to content

Commit

Permalink
PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jul 1, 2024
1 parent 3d03c85 commit 9b138c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions p2p/test/transport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
libp2pwebrtc "github.com/libp2p/go-libp2p/p2p/transport/webrtc"
"go.uber.org/mock/gomock"

"github.com/multiformats/go-multiaddr"
ma "github.com/multiformats/go-multiaddr"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -673,7 +672,7 @@ func TestDiscoverPeerIDFromSecurityNegotiation(t *testing.T) {

ai := &peer.AddrInfo{
ID: bogusPeerId,
Addrs: []multiaddr.Multiaddr{h1.Addrs()[0]},
Addrs: []ma.Multiaddr{h1.Addrs()[0]},
}

// Try connecting with the bogus peer ID
Expand Down
2 changes: 1 addition & 1 deletion p2p/transport/quic/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestCleanupConnWhenBlocked(t *testing.T) {
}

// No error yet, let's continue using the conn
s.SetReadDeadline(time.Now().Add(1 * time.Second))
s.SetReadDeadline(time.Now().Add(10 * time.Second))
b := [1]byte{}
_, err = s.Read(b[:])
if err != nil && errors.As(err, &quicErr) {
Expand Down

0 comments on commit 9b138c2

Please sign in to comment.