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
12872983
Unverified
Commit
12872983
authored
Mar 24, 2020
by
dirkmc
Committed by
GitHub
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: flaky TestSendDontHave (#321)
parent
9bf0f256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
internal/decision/engine_test.go
internal/decision/engine_test.go
+2
-2
No files found.
internal/decision/engine_test.go
View file @
12872983
...
...
@@ -935,7 +935,7 @@ func TestSendDontHave(t *testing.T) {
// Nothing in blockstore, should get DONT_HAVE for entries that wanted it
var
next
envChan
next
,
env
:=
getNextEnvelope
(
e
,
next
,
5
*
time
.
Millisecond
)
next
,
env
:=
getNextEnvelope
(
e
,
next
,
10
*
time
.
Millisecond
)
if
env
==
nil
{
t
.
Fatal
(
"expected envelope"
)
}
...
...
@@ -965,7 +965,7 @@ func TestSendDontHave(t *testing.T) {
e
.
ReceiveFrom
(
otherPeer
,
blks
,
[]
cid
.
Cid
{})
// Envelope should contain 2 HAVEs / 2 blocks
_
,
env
=
getNextEnvelope
(
e
,
next
,
5
*
time
.
Millisecond
)
_
,
env
=
getNextEnvelope
(
e
,
next
,
10
*
time
.
Millisecond
)
if
env
==
nil
{
t
.
Fatal
(
"expected envelope"
)
}
...
...
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