Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
775dd78f
Commit
775dd78f
authored
May 19, 2017
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for partner removal
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
489aeacf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
decision/engine_test.go
decision/engine_test.go
+5
-0
No files found.
decision/engine_test.go
View file @
775dd78f
...
@@ -89,6 +89,11 @@ func TestPeerIsAddedToPeersWhenMessageReceivedOrSent(t *testing.T) {
...
@@ -89,6 +89,11 @@ func TestPeerIsAddedToPeersWhenMessageReceivedOrSent(t *testing.T) {
if
!
peerIsPartner
(
sanfrancisco
.
Peer
,
seattle
.
Engine
)
{
if
!
peerIsPartner
(
sanfrancisco
.
Peer
,
seattle
.
Engine
)
{
t
.
Fatal
(
"Peer wasn't added as a Partner"
)
t
.
Fatal
(
"Peer wasn't added as a Partner"
)
}
}
seattle
.
Engine
.
PeerDisconnected
(
sanfrancisco
.
Peer
)
if
peerIsPartner
(
sanfrancisco
.
Peer
,
seattle
.
Engine
)
{
t
.
Fatal
(
"expected peer to be removed"
)
}
}
}
func
peerIsPartner
(
p
peer
.
ID
,
e
*
Engine
)
bool
{
func
peerIsPartner
(
p
peer
.
ID
,
e
*
Engine
)
bool
{
...
...
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