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
fc3c6838
Commit
fc3c6838
authored
Aug 23, 2015
by
rht
Browse files
Replace context.TODO in test files with context.Background
License: MIT Signed-off-by:
rht
<
rhtbot@gmail.com
>
parent
71ef0279
Changes
1
Show whitespace changes
Inline
Side-by-side
net/swarm/swarm_test.go
View file @
fc3c6838
...
...
@@ -288,13 +288,13 @@ func TestAddrBlocking(t *testing.T) {
swarms
[
1
]
.
Filters
.
AddDialFilter
(
block
)
swarms
[
1
]
.
peers
.
AddAddr
(
swarms
[
0
]
.
LocalPeer
(),
swarms
[
0
]
.
ListenAddresses
()[
0
],
peer
.
PermanentAddrTTL
)
_
,
err
=
swarms
[
1
]
.
Dial
(
c
ontext
.
TODO
()
,
swarms
[
0
]
.
LocalPeer
())
_
,
err
=
swarms
[
1
]
.
Dial
(
c
tx
,
swarms
[
0
]
.
LocalPeer
())
if
err
==
nil
{
t
.
Fatal
(
"dial should have failed"
)
}
swarms
[
0
]
.
peers
.
AddAddr
(
swarms
[
1
]
.
LocalPeer
(),
swarms
[
1
]
.
ListenAddresses
()[
0
],
peer
.
PermanentAddrTTL
)
_
,
err
=
swarms
[
0
]
.
Dial
(
c
ontext
.
TODO
()
,
swarms
[
1
]
.
LocalPeer
())
_
,
err
=
swarms
[
0
]
.
Dial
(
c
tx
,
swarms
[
1
]
.
LocalPeer
())
if
err
==
nil
{
t
.
Fatal
(
"dial should have failed"
)
}
...
...
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