aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-19 19:30:34 +0800
committerobscuren <geffobscura@gmail.com>2015-04-19 19:30:34 +0800
commitc58918c84ad6825ca20cc9170b0a79eb1033c50a (patch)
tree6ff82b5cf2bb1764a383e68a0e6155fad2bc3eb9 /eth/downloader/downloader_test.go
parent4340996572a3cab2a4c985710c06ec956832e082 (diff)
downloaddexon-c58918c84ad6825ca20cc9170b0a79eb1033c50a.tar.gz
dexon-c58918c84ad6825ca20cc9170b0a79eb1033c50a.tar.zst
dexon-c58918c84ad6825ca20cc9170b0a79eb1033c50a.zip
downloader: moved chunk ignoring. Fixes issue with catching up
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r--eth/downloader/downloader_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index 6cf99b678..249d8a533 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -73,7 +73,7 @@ func (dl *downloadTester) insertChain(blocks types.Blocks) error {
}
func (dl *downloadTester) getHashes(hash common.Hash) error {
- dl.downloader.HashCh <- dl.hashes
+ dl.downloader.hashCh <- dl.hashes
return nil
}
@@ -109,6 +109,8 @@ func TestDownload(t *testing.T) {
glog.SetV(logger.Detail)
glog.SetToStderr(true)
+ minDesiredPeerCount = 4
+
hashes := createHashes(0, 1000)
blocks := createBlocksFromHashes(hashes)
tester := newTester(t, hashes, blocks)
@@ -123,7 +125,7 @@ success:
case <-tester.done:
break success
case <-time.After(10 * time.Second): // XXX this could actually fail on a slow computer
- t.Error("timout")
+ t.Error("timeout")
}
}