Unverified Commit deead997 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

core/bloombits: speed up windows-test (#25844)

core/bloombits: remove micro-sleep
parent e50aeac4
...@@ -19,11 +19,9 @@ package bloombits ...@@ -19,11 +19,9 @@ package bloombits
import ( import (
"bytes" "bytes"
"math/big" "math/big"
"math/rand"
"sync" "sync"
"sync/atomic" "sync/atomic"
"testing" "testing"
"time"
) )
// Tests that the scheduler can deduplicate and forward retrieval requests to // Tests that the scheduler can deduplicate and forward retrieval requests to
...@@ -53,7 +51,6 @@ func testScheduler(t *testing.T, clients int, fetchers int, requests int) { ...@@ -53,7 +51,6 @@ func testScheduler(t *testing.T, clients int, fetchers int, requests int) {
defer fetchPend.Done() defer fetchPend.Done()
for req := range fetch { for req := range fetch {
time.Sleep(time.Duration(rand.Intn(int(100 * time.Microsecond))))
atomic.AddUint32(&delivered, 1) atomic.AddUint32(&delivered, 1)
f.deliver([]uint64{ f.deliver([]uint64{
......
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