diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-22 08:37:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-03-22 08:37:24 +0800 |
commit | 9b84caf3a5f55cc2a14b50291118b9fab668b8c2 (patch) | |
tree | 0c9f92abf034f6a3e8f0cbc7458b209331fd7c8f /eth/downloader/downloader_test.go | |
parent | 06d6685eb58f6cb0eda4d7adc8ae91e5cdb88462 (diff) | |
download | go-tangerine-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.tar.gz go-tangerine-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.tar.zst go-tangerine-9b84caf3a5f55cc2a14b50291118b9fab668b8c2.zip |
core, eth, les: support resuming fast sync on heavy rollback (#3743)
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r-- | eth/downloader/downloader_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index a9ea797ea..267a0def9 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -982,7 +982,7 @@ func testCancel(t *testing.T, protocol int, mode SyncMode) { tester.newPeer("peer", protocol, hashes, headers, blocks, receipts) // Make sure canceling works with a pristine downloader - tester.downloader.cancel() + tester.downloader.Cancel() if !tester.downloader.queue.Idle() { t.Errorf("download queue not idle") } @@ -990,7 +990,7 @@ func testCancel(t *testing.T, protocol int, mode SyncMode) { if err := tester.sync("peer", nil, mode); err != nil { t.Fatalf("failed to synchronise blocks: %v", err) } - tester.downloader.cancel() + tester.downloader.Cancel() if !tester.downloader.queue.Idle() { t.Errorf("download queue not idle") } |