Skip to content

Commit

Permalink
test: fix a UT fail of download test
Browse files Browse the repository at this point in the history
errStallingPeer is replaced by errLaggingPeer in this case
  • Loading branch information
brilliant-lx committed Feb 7, 2023
1 parent f31c142 commit 5bca078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth/downloader/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,8 @@ func testHighTDStarvationAttack(t *testing.T, protocol uint, mode SyncMode) {

chain := testChainBase.shorten(1)
tester.newPeer("attack", protocol, chain.blocks[1:])
if err := tester.sync("attack", big.NewInt(1000000), mode); err != errStallingPeer {
t.Fatalf("synchronisation error mismatch: have %v, want %v", err, errStallingPeer)
if err := tester.sync("attack", big.NewInt(1000000), mode); err != errLaggingPeer {
t.Fatalf("synchronisation error mismatch: have %v, want %v", err, errLaggingPeer)
}
}

Expand Down

0 comments on commit 5bca078

Please sign in to comment.