Skip to content

Commit

Permalink
eth/downloader, les/downloader: fix log errors of queue_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
int88 committed Aug 8, 2022
1 parent e44d655 commit e8756eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions eth/downloader/queue_test.go
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 @@ -249,9 +249,9 @@ func TestEmptyBlocks(t *testing.T) {
peer := dummyPeer("peer-3")
fetchReq, _, _ := q.ReserveReceipts(peer, 50)

// there should be nothing to fetch, blocks are empty
// there should be nothing to fetch, receipts 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
6 changes: 3 additions & 3 deletions les/downloader/queue_test.go
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 @@ -237,9 +237,9 @@ func TestEmptyBlocks(t *testing.T) {
peer := dummyPeer("peer-3")
fetchReq, _, _ := q.ReserveReceipts(peer, 50)

// there should be nothing to fetch, blocks are empty
// there should be nothing to fetch, receipts 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 e8756eb

Please sign in to comment.