Skip to content

Commit 07a48b3

Browse files
int88blakehhuynh
authored andcommitted
eth/downloader: fix log errors of queue_test.go (ethereum#25494)
1 parent 1300fb2 commit 07a48b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eth/downloader/queue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func TestBasics(t *testing.T) {
156156

157157
// The second peer should hit throttling
158158
if !throttle {
159-
t.Fatalf("should not throttle")
159+
t.Fatalf("should throttle")
160160
}
161161
// And not get any fetches at all, since it was throttled to begin with
162162
if fetchReq != nil {
@@ -251,7 +251,7 @@ func TestEmptyBlocks(t *testing.T) {
251251

252252
// there should be nothing to fetch, blocks are empty
253253
if fetchReq != nil {
254-
t.Fatal("there should be no body fetch tasks remaining")
254+
t.Fatal("there should be no receipt fetch tasks remaining")
255255
}
256256
}
257257
if q.blockTaskQueue.Size() != numOfBlocks-10 {

les/downloader/queue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func TestBasics(t *testing.T) {
150150

151151
// The second peer should hit throttling
152152
if !throttle {
153-
t.Fatalf("should not throttle")
153+
t.Fatalf("should throttle")
154154
}
155155
// And not get any fetches at all, since it was throttled to begin with
156156
if fetchReq != nil {
@@ -239,7 +239,7 @@ func TestEmptyBlocks(t *testing.T) {
239239

240240
// there should be nothing to fetch, blocks are empty
241241
if fetchReq != nil {
242-
t.Fatal("there should be no body fetch tasks remaining")
242+
t.Fatal("there should be no receipt fetch tasks remaining")
243243
}
244244
}
245245
if q.blockTaskQueue.Size() != numOfBlocks-10 {

0 commit comments

Comments
 (0)