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
d6002bcb
Commit
d6002bcb
authored
Aug 14, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix unused warnings
parent
a884776a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
decision/engine_test.go
decision/engine_test.go
+1
-1
session/session_test.go
session/session_test.go
+3
-0
sessionmanager/sessionmanager_test.go
sessionmanager/sessionmanager_test.go
+5
-8
No files found.
decision/engine_test.go
View file @
d6002bcb
...
...
@@ -245,7 +245,7 @@ func TestTaggingPeers(t *testing.T) {
t
.
Fatal
(
"Incorrect number of peers tagged"
)
}
envelope
.
Sent
()
next
=
<-
sanfrancisco
.
Engine
.
Outbox
()
<-
sanfrancisco
.
Engine
.
Outbox
()
sanfrancisco
.
PeerTagger
.
wait
.
Wait
()
if
sanfrancisco
.
PeerTagger
.
count
()
!=
0
{
t
.
Fatal
(
"Peers should be untagged but weren't"
)
...
...
session/session_test.go
View file @
d6002bcb
...
...
@@ -188,6 +188,9 @@ func TestSessionGetBlocks(t *testing.T) {
if
len
(
receivedBlocks
)
!=
len
(
blks
)
{
t
.
Fatal
(
"did not receive enough blocks"
)
}
if
len
(
newCancelReqs
)
!=
len
(
receivedBlocks
)
{
t
.
Fatal
(
"expected an equal number of received blocks and cancels"
)
}
for
_
,
block
:=
range
receivedBlocks
{
if
!
testutil
.
ContainsBlock
(
blks
,
block
)
{
t
.
Fatal
(
"received incorrect block"
)
...
...
sessionmanager/sessionmanager_test.go
View file @
d6002bcb
...
...
@@ -19,9 +19,6 @@ import (
type
fakeSession
struct
{
interested
[]
cid
.
Cid
blks
[]
blocks
.
Block
fromNetwork
bool
receivedBlock
bool
updateReceiveCounters
bool
id
uint64
pm
*
fakePeerManager
srs
*
fakeRequestSplitter
...
...
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