Skip to content

Commit

Permalink
eth/downloader: fix log errors of queue_test.go (ethereum#25494)
Browse files Browse the repository at this point in the history
  • Loading branch information
int88 authored and HanWang233 committed Sep 11, 2022
1 parent c22ac3e commit b27ec88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eth/downloader/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions les/downloader/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b27ec88

Please sign in to comment.