Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
29af134a
Commit
29af134a
authored
Jul 26, 2018
by
Abhishek Upperwal
Browse files
corrected transport init
parent
fb401957
Changes
1
Show whitespace changes
Inline
Side-by-side
libp2p_test.go
View file @
29af134a
...
...
@@ -46,7 +46,7 @@ func TestDefaultListenAddrs(t *testing.T) {
// Test 1: Listen addr should not set if user defined transport is passed.
h
,
err
:=
New
(
ctx
,
Transport
(
tcp
.
Tcp
Transport
{}
),
Transport
(
tcp
.
NewTCP
Transport
),
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
...
...
@@ -60,7 +60,7 @@ func TestDefaultListenAddrs(t *testing.T) {
// Test 2: User defined listener addrs should overwrite the default options.
h
,
err
=
New
(
ctx
,
Transport
(
tcp
.
Tcp
Transport
{}
),
Transport
(
tcp
.
NewTCP
Transport
),
ListenAddrStrings
(
"/ip4/127.0.0.1/tcp/0"
),
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment