Unverified Commit 038c8934 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #479 from ipfs/fix/deflake-large-message-test

test: deflake large-message test
parents 9de18049 42932307
......@@ -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) {
......
......@@ -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, 100*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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment