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
7458eb8f
Commit
7458eb8f
authored
Aug 20, 2019
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: better session manager test naming
parent
56219bd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sessionmanager/sessionmanager_test.go
sessionmanager/sessionmanager_test.go
+3
-3
No files found.
sessionmanager/sessionmanager_test.go
View file @
7458eb8f
...
...
@@ -179,7 +179,7 @@ func TestReceivingBlocksWhenNotInterested(t *testing.T) {
}
}
func
TestI
nteres
ted
In
(
t
*
testing
.
T
)
{
func
TestI
sWan
ted
(
t
*
testing
.
T
)
{
ctx
:=
context
.
Background
()
ctx
,
cancel
:=
context
.
WithCancel
(
ctx
)
defer
cancel
()
...
...
@@ -201,10 +201,10 @@ func TestInterestedIn(t *testing.T) {
if
!
sm
.
IsWanted
(
cids
[
0
])
||
!
sm
.
IsWanted
(
cids
[
1
])
||
!
sm
.
IsWanted
(
cids
[
2
])
{
t
.
Fatal
(
"expected
interest
but session manager
was not intereste
d"
)
t
.
Fatal
(
"expected
unwanted
but session manager
did want ci
d"
)
}
if
sm
.
IsWanted
(
cids
[
3
])
{
t
.
Fatal
(
"expected
no interest
but session manager
was intereste
d"
)
t
.
Fatal
(
"expected
wanted
but session manager
did not want ci
d"
)
}
}
...
...
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