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
b90e5fb7
Commit
b90e5fb7
authored
Nov 20, 2014
by
Brian Tiger Chow
Committed by
Jeromy
Dec 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(bitswap) Close (but skip for now)
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
58b9745f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
bitswap_test.go
bitswap_test.go
+15
-0
No files found.
bitswap_test.go
View file @
b90e5fb7
...
...
@@ -18,6 +18,21 @@ import (
mock
"github.com/jbenet/go-ipfs/routing/mock"
)
func
TestClose
(
t
*
testing
.
T
)
{
// TODO
t
.
Skip
(
"TODO Bitswap's Close implementation is a WIP"
)
vnet
:=
tn
.
VirtualNetwork
()
rout
:=
mock
.
VirtualRoutingServer
()
sesgen
:=
NewSessionGenerator
(
vnet
,
rout
)
bgen
:=
NewBlockGenerator
()
block
:=
bgen
.
Next
()
bitswap
:=
sesgen
.
Next
()
bitswap
.
exchange
.
Close
()
bitswap
.
exchange
.
GetBlock
(
context
.
Background
(),
block
.
Key
())
}
func
TestGetBlockTimeout
(
t
*
testing
.
T
)
{
net
:=
tn
.
VirtualNetwork
()
...
...
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