aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-18 05:04:57 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-18 05:04:57 +0800
commit2f4cbe22f5207b830f2685caae175cce70bcd231 (patch)
treeeac133c9dee26ec44418afc0fda6a1adf6e76555 /eth/downloader/downloader_test.go
parentae36beb38f356a08370e95559d04243140105c32 (diff)
downloadgo-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.gz
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.bz2
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.lz
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.xz
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.tar.zst
go-tangerine-2f4cbe22f5207b830f2685caae175cce70bcd231.zip
eth, eth/downloader: fix processing interrupt caused by temp cancel
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r--eth/downloader/downloader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index 53eb5f81d..f97e6077b 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -247,7 +247,7 @@ func TestCancel(t *testing.T) {
tester.newPeer("peer", hashes, blocks)
// Make sure canceling works with a pristine downloader
- tester.downloader.Cancel()
+ tester.downloader.cancel()
hashCount, blockCount := tester.downloader.queue.Size()
if hashCount > 0 || blockCount > 0 {
t.Errorf("block or hash count mismatch: %d hashes, %d blocks, want 0", hashCount, blockCount)
@@ -256,7 +256,7 @@ func TestCancel(t *testing.T) {
if err := tester.sync("peer"); err != nil {
t.Fatalf("failed to synchronise blocks: %v", err)
}
- tester.downloader.Cancel()
+ tester.downloader.cancel()
hashCount, blockCount = tester.downloader.queue.Size()
if hashCount > 0 || blockCount > 0 {
t.Errorf("block or hash count mismatch: %d hashes, %d blocks, want 0", hashCount, blockCount)