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
6b3042fe
Commit
6b3042fe
authored
Dec 18, 2018
by
hannahhoward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tests): minor fix for waitgroup
parent
78d4f387
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
session/session_test.go
session/session_test.go
+1
-1
sessionpeermanager/sessionpeermanager_test.go
sessionpeermanager/sessionpeermanager_test.go
+1
-1
No files found.
session/session_test.go
View file @
6b3042fe
...
...
@@ -185,7 +185,7 @@ func TestSessionFindMorePeers(t *testing.T) {
<-
wantReqs
<-
cancelReqs
// wait
long enough for a tick
to occur
// wait
for a request to get more peers
to occur
<-
fpm
.
findMorePeersRequested
// verify a broadcast was made
...
...
sessionpeermanager/sessionpeermanager_test.go
View file @
6b3042fe
...
...
@@ -49,7 +49,7 @@ func (fcm *fakeConnManager) TagPeer(p peer.ID, tag string, n int) {
}
func
(
fcm
*
fakeConnManager
)
UntagPeer
(
p
peer
.
ID
,
tag
string
)
{
fcm
.
wait
.
Done
()
defer
fcm
.
wait
.
Done
()
for
i
:=
0
;
i
<
len
(
fcm
.
taggedPeers
);
i
++
{
if
fcm
.
taggedPeers
[
i
]
==
p
{
...
...
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