Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
deead997
Unverified
Commit
deead997
authored
Oct 06, 2022
by
Martin Holst Swende
Committed by
GitHub
Oct 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/bloombits: speed up windows-test (#25844)
core/bloombits: remove micro-sleep
parent
e50aeac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
scheduler_test.go
core/bloombits/scheduler_test.go
+0
-3
No files found.
core/bloombits/scheduler_test.go
View file @
deead997
...
@@ -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
{
...
...
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