From 9b138c21925bd81c3066e49201777eda859b70b7 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Sat, 29 Jun 2024 12:02:26 -0700 Subject: [PATCH] PR Comments --- p2p/test/transport/transport_test.go | 3 +-- p2p/transport/quic/listener_test.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/p2p/test/transport/transport_test.go b/p2p/test/transport/transport_test.go index 5876587f9d..e75118ccf4 100644 --- a/p2p/test/transport/transport_test.go +++ b/p2p/test/transport/transport_test.go @@ -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" ) @@ -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 diff --git a/p2p/transport/quic/listener_test.go b/p2p/transport/quic/listener_test.go index f4bbc06c99..dbd6d810e4 100644 --- a/p2p/transport/quic/listener_test.go +++ b/p2p/transport/quic/listener_test.go @@ -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) {