Marten Seemann
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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) |
|
|
|
|
|
|
|