Unverified Commit ae75342a authored by dirkmc's avatar dirkmc Committed by GitHub

fix: flaky TestSendsWantBlockToOnePeerOnly (#323)

parent 12872983
...@@ -82,7 +82,7 @@ func (pm *mockPeerManager) SendWants(ctx context.Context, p peer.ID, wantBlocks ...@@ -82,7 +82,7 @@ func (pm *mockPeerManager) SendWants(ctx context.Context, p peer.ID, wantBlocks
} }
func (pm *mockPeerManager) waitNextWants() map[peer.ID]*sentWants { func (pm *mockPeerManager) waitNextWants() map[peer.ID]*sentWants {
time.Sleep(5 * time.Millisecond) time.Sleep(10 * time.Millisecond)
pm.lk.Lock() pm.lk.Lock()
defer pm.lk.Unlock() defer pm.lk.Unlock()
......
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