Browse Source

test/basichost: fix flaky test due to rcmgr (#2613)

pull/2617/head
Marten Seemann 1 year ago
committed by GitHub
parent
commit
476eda472a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      p2p/test/basichost/basic_host_test.go

4
p2p/test/basichost/basic_host_test.go

@ -21,12 +21,14 @@ func TestNoStreamOverTransientConnection(t *testing.T) {
h1, err := libp2p.New(
libp2p.NoListenAddrs,
libp2p.EnableRelay(),
libp2p.ResourceManager(&network.NullResourceManager{}),
)
require.NoError(t, err)
h2, err := libp2p.New(
libp2p.NoListenAddrs,
libp2p.EnableRelay(),
libp2p.ResourceManager(&network.NullResourceManager{}),
)
require.NoError(t, err)
@ -80,12 +82,14 @@ func TestNewStreamTransientConnection(t *testing.T) {
h1, err := libp2p.New(
libp2p.ListenAddrStrings("/ip4/127.0.0.1/udp/0/quic-v1"),
libp2p.EnableRelay(),
libp2p.ResourceManager(&network.NullResourceManager{}),
)
require.NoError(t, err)
h2, err := libp2p.New(
libp2p.ListenAddrStrings("/ip4/127.0.0.1/udp/0/quic-v1"),
libp2p.EnableRelay(),
libp2p.ResourceManager(&network.NullResourceManager{}),
)
require.NoError(t, err)

Loading…
Cancel
Save