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
13e0a4dc
Commit
13e0a4dc
authored
Apr 10, 2019
by
hannahhoward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(messagequeue): test correction
timing on test was failure prone, corrected
parent
256e680c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
messagequeue/messagequeue_test.go
messagequeue/messagequeue_test.go
+2
-2
No files found.
messagequeue/messagequeue_test.go
View file @
13e0a4dc
...
@@ -180,9 +180,9 @@ func TestWantlistRebroadcast(t *testing.T) {
...
@@ -180,9 +180,9 @@ func TestWantlistRebroadcast(t *testing.T) {
}
}
messageQueue
.
SetRebroadcastInterval
(
5
*
time
.
Millisecond
)
messageQueue
.
SetRebroadcastInterval
(
5
*
time
.
Millisecond
)
messages
=
collectMessages
(
ctx
,
t
,
messagesSent
,
10
*
time
.
Millisecond
)
messages
=
collectMessages
(
ctx
,
t
,
messagesSent
,
8
*
time
.
Millisecond
)
if
len
(
messages
)
!=
1
{
if
len
(
messages
)
!=
1
{
t
.
Fatal
(
"wrong number of messages were
sent for initial wants
"
)
t
.
Fatal
(
"wrong number of messages were
rebroadcast
"
)
}
}
firstMessage
:=
messages
[
0
]
firstMessage
:=
messages
[
0
]
...
...
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