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
e93442c6
Unverified
Commit
e93442c6
authored
Aug 08, 2022
by
int88
Committed by
GitHub
Aug 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/downloader: fix log errors of queue_test.go (#25494)
parent
e44d6551
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
queue_test.go
eth/downloader/queue_test.go
+2
-2
queue_test.go
les/downloader/queue_test.go
+2
-2
No files found.
eth/downloader/queue_test.go
View file @
e93442c6
...
...
@@ -156,7 +156,7 @@ func TestBasics(t *testing.T) {
// The second peer should hit throttling
if
!
throttle
{
t
.
Fatalf
(
"should
not
throttle"
)
t
.
Fatalf
(
"should throttle"
)
}
// And not get any fetches at all, since it was throttled to begin with
if
fetchReq
!=
nil
{
...
...
@@ -251,7 +251,7 @@ func TestEmptyBlocks(t *testing.T) {
// there should be nothing to fetch, blocks are empty
if
fetchReq
!=
nil
{
t
.
Fatal
(
"there should be no
body
fetch tasks remaining"
)
t
.
Fatal
(
"there should be no
receipt
fetch tasks remaining"
)
}
}
if
q
.
blockTaskQueue
.
Size
()
!=
numOfBlocks
-
10
{
...
...
les/downloader/queue_test.go
View file @
e93442c6
...
...
@@ -150,7 +150,7 @@ func TestBasics(t *testing.T) {
// The second peer should hit throttling
if
!
throttle
{
t
.
Fatalf
(
"should
not
throttle"
)
t
.
Fatalf
(
"should throttle"
)
}
// And not get any fetches at all, since it was throttled to begin with
if
fetchReq
!=
nil
{
...
...
@@ -239,7 +239,7 @@ func TestEmptyBlocks(t *testing.T) {
// there should be nothing to fetch, blocks are empty
if
fetchReq
!=
nil
{
t
.
Fatal
(
"there should be no
body
fetch tasks remaining"
)
t
.
Fatal
(
"there should be no
receipt
fetch tasks remaining"
)
}
}
if
q
.
blockTaskQueue
.
Size
()
!=
numOfBlocks
-
10
{
...
...
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