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
a7584cdf
Commit
a7584cdf
authored
Jan 29, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitswap: removed dubious error check test.
parent
15ecff90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
bitswap_test.go
bitswap_test.go
+0
-17
No files found.
bitswap_test.go
View file @
a7584cdf
...
@@ -36,23 +36,6 @@ func TestClose(t *testing.T) {
...
@@ -36,23 +36,6 @@ func TestClose(t *testing.T) {
bitswap
.
Exchange
.
GetBlock
(
context
.
Background
(),
block
.
Key
())
bitswap
.
Exchange
.
GetBlock
(
context
.
Background
(),
block
.
Key
())
}
}
func
TestGetBlockTimeout
(
t
*
testing
.
T
)
{
net
:=
tn
.
VirtualNetwork
(
mockrouting
.
NewServer
(),
delay
.
Fixed
(
kNetworkDelay
))
g
:=
NewTestSessionGenerator
(
net
)
defer
g
.
Close
()
self
:=
g
.
Next
()
ctx
,
_
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Nanosecond
)
block
:=
blocks
.
NewBlock
([]
byte
(
"block"
))
_
,
err
:=
self
.
Exchange
.
GetBlock
(
ctx
,
block
.
Key
())
if
err
!=
context
.
DeadlineExceeded
{
t
.
Fatal
(
"Expected DeadlineExceeded error"
)
}
}
func
TestProviderForKeyButNetworkCannotFind
(
t
*
testing
.
T
)
{
// TODO revisit this
func
TestProviderForKeyButNetworkCannotFind
(
t
*
testing
.
T
)
{
// TODO revisit this
rs
:=
mockrouting
.
NewServer
()
rs
:=
mockrouting
.
NewServer
()
...
...
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