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
038c8934
Unverified
Commit
038c8934
authored
Apr 29, 2021
by
Steven Allen
Committed by
GitHub
Apr 29, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #479 from ipfs/fix/deflake-large-message-test
test: deflake large-message test
parents
9de18049
42932307
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
internal/messagequeue/donthavetimeoutmgr_test.go
internal/messagequeue/donthavetimeoutmgr_test.go
+1
-1
internal/messagequeue/messagequeue_test.go
internal/messagequeue/messagequeue_test.go
+1
-1
No files found.
internal/messagequeue/donthavetimeoutmgr_test.go
View file @
038c8934
...
...
@@ -355,7 +355,7 @@ func TestDontHaveTimeoutMgrUsesDefaultTimeoutIfLatencyLonger(t *testing.T) {
}
// Sleep until after the default timeout
time
.
Sleep
(
10
*
time
.
Millisecond
)
time
.
Sleep
(
defaultTimeout
*
2
)
// Now the keys should have timed out
if
tr
.
timedOutCount
()
!=
len
(
ks
)
{
...
...
internal/messagequeue/messagequeue_test.go
View file @
038c8934
...
...
@@ -501,7 +501,7 @@ func TestSendingLargeMessages(t *testing.T) {
messageQueue
.
Startup
()
messageQueue
.
AddWants
(
wantBlocks
,
[]
cid
.
Cid
{})
messages
:=
collectMessages
(
ctx
,
t
,
messagesSent
,
10
*
time
.
Millisecond
)
messages
:=
collectMessages
(
ctx
,
t
,
messagesSent
,
10
0
*
time
.
Millisecond
)
// want-block has size 44, so with maxMsgSize 44 * 3 (3 want-blocks), then if
// we send 10 want-blocks we should expect 4 messages:
...
...
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